Authentication with ServiceStack and more provider
I state that I use ServiceStack to authenticate my services. My problem is the following I am developing two authentication methods via credentials and via API key. The implementation is correct but I...
- Modified
- 7 Apr at 10:46
Is it possible to make typescript-ref DTO generator to respect nullable properties?
I am trying to achieve valid DTO generation using `typescript-ref` utility from ServiceStack. Problem is: for nullable and reference properties it will not generate the default value definition. Ther...
- Modified
- 7 Apr at 11:24
How can I change the default info title produced by nswag?
I'm using NSwag for .NET Core 3.1. Everything works correctly. I can't determine how to change "My Title" (which is the info title) to something else. [](https://i.stack.imgur.com/WVDaD.png) `...
- Modified
- 14 Apr at 11:52
Can we add authorization scopes for external logins and save results to database in ServiceStack?
Can we customize the scope in GoogleAuthProvider to get more details like their phone number, address or calendar, profile picture? Also can we view the details of the Identity and access token and p...
- Modified
- 6 Apr at 18:45
EF Core relationship without foreign key
How to setup a navigation property without declaring a foreign key? I have two tables (`segment` and `category`), they can join using 2 columns (origin/destination) but they don't meet the foreign ...
- Modified
- 6 Apr at 15:9
ServiceStack.Ormlite Postgres case insensitive queries
I am looking to cleanly implement a mechanism to override all where clauses that compare strings to do the following [Column].Value.ToLower() == SqlParam.ToLower() effectively overcoming the case se...
- Modified
- 6 Apr at 15:14
Does Service stack allow authentication using Google OpenId connect?
I would like to add Google authentication on my service stack web application but it looks like it does not support OpenID connect. It only supports Open Id 2.0 which is the older version. [https://do...
- Modified
- 4 Apr at 21:8
Merge results from SelectMulti tuple
here is my query ``` var query = db.From<DataModels.Task>() .Join<DataModels.Assignment>((task, assignment) => task.TaskID == assignment.TaskID) .LeftJoin<DataModels.Association>((task, assoc...
- Modified
- 4 Apr at 02:59
How to reference System.Management.Automation in a .NET Framework 4.7.2?
I started a new .NET Framework 4.7.2 library project. I need to automate PowerShell scripts, but the "framework" tab in Visual Studio's reference adding UI didn't list System.Management.Automation as ...
- Modified
- 5 May at 16:48
How read all files from azure blob storage in C# Core
I want to read files from an azure blob storage (the files inside the folder), the blob storage contains many folders. I want to read my folder 'blobstorage' ,it contains many JSON files performing .r...
- Modified
- 4 Jul at 09:48
.NET Core 3.1 loading config from appsettings.json for console application
For .NET Core 3.1, console application how can I read a complex object from appsetting.json file and cast it into the corresponding object? All the examples I see online seem to be for previous vers...
- Modified
- 28 May at 12:47
c# 8 switch expression: No best type was found for the switch expression
I have added a code in my startup class (.net core 3.1) to return the type based on parameter and I get compile-time errors. I have created a running example in [sharplab](https://sharplab.io/#v2:EYL...
- Modified
- 4 Jun at 18:47
How to convert a class instance to JsonDocument?
Let's say we have an entity class that looks like this: ``` public class SerializedEntity { public JsonDocument Payload { get; set; } public SerializedEntity(JsonDocument payload) { ...
- Modified
- 2 Apr at 12:29
Self hosting HTTP(s) endpoints in .net core app without using asp.net?
I have a .net core application running in Windows and Linux as well (I use .net core runtime >= 2.1). To get better insights I'd like to expose a metrics endpoint (simple HTTP GET endpoint) for Promet...
- Modified
- 3 Apr at 05:57
Why is IEnumerable.ToObservable so slow?
I am trying to enumerate a large [IEnumerable](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1) once, and observe the enumeration with various operators attached ...
- Modified
- 6 Apr at 13:21
.NET Core 3.1 SOAP platform not supported error "Compiling JScript/CSharp scripts is not supported"
I am using a WSDL file (wsdl.zip) provided by Amadeus. When trying to call the service method using the below code, it threw a System.PlatformNotSupportedException saying "`Compiling JScript/CSharp sc...
How do I upload files with Blazor?
I found the [BlazorInputFile](https://github.com/SteveSandersonMS/BlazorInputFile) library, but there are still-open PRs from October of 2019, and I am not sure whether this library is still maintaine...
- Modified
- 25 Aug at 14:8
Service Stack Vue SPA + SharpApp
We are developing the SharpApp, initially, I started with parcel-webapp template using the following article. [https://github.com/NetCoreTemplates/parcel-webapp](https://github.com/NetCoreTemplates/p...
- Modified
- 1 Apr at 11:45
Unit Test a Time Triggered Azure Function
I've got a time-triggered Azure Function which I want to test with XUnit and MOQ. While I know I need to call the `Run` method of the class using an instance of the class say `funTimeTriggeredObj` whe...
- Modified
- 6 May at 05:41
'OpenCvSharp.NativeMethods' threw an exception. Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies., Ubuntu 18.04
I have used the OpenCvSharp library in my .net core 3.0 application when running this application in the windows environment, the application is running without any issues. When the same application i...
- Modified
- 12 Aug at 22:54
How to customize HTML response in service stack exception?
I have a legacy application that uses hidden iframes to upload content to a webserver. During application startup, the document.domain is set to a particular value in the browser. Any html response ...
- Modified
- 30 Mar at 23:59
Use Visual Studio debugger with ASP.NET Core web app running in Kubernetes?
Our team wants to be able to run the Visual Studio debugger against deployed instances of our ASP.NET application to our internal Kubernetes cluster. I need to figure out how to finish the puzzle but...
- Modified
- 6 Apr at 09:17
ServiceStack Redis connection/timeout error handling c#
I am using Redis with ServiceStack and with a connection pool; now I know that the docs say that it can fail at any time (and it does randomly, especially when i'm ramping up connections; it has timeo...
- Modified
- 30 Mar at 06:17
“The JSON value could not be converted to System.String” when attempting to call controller endpoint
I've been trying to create a simple API, I manage to make the `Get` work just fine but whenever I try to work with `Post` or `Put` I can't get it to work. I'm trying to post/put a JSON and getting it ...
- Modified
- 28 Mar at 18:45