Dependency injection injecting null when missing registration in Azure functions

I'm getting `null` injected into my constructor that has a dependency which I forgot to register. In the below example dependency would be `null` when you forget to register `IDepencency` in the sta...

Get current User outside of Controller

On an ASP.NET Core controller I have the following: I am able to check if the user is `authenticated` and gets the `claims` including `id`. How can I do the same outside of the `Controller` where I do...

5 May at 14:57

How to refresh currently active page in flutter

I have a global function that I call from almost all screens of my app. I am passing context to it. I just want to know if there is a way to refresh the page from which the global function is called d...

22 Dec at 05:16

Error when changing to <TargetFrameworks> (plural) in .NET Core csproj file

I was following a tutorial on Pluralsight about having an MSTest project target both .net core 2.2 AND .NET 4.7.2. This required going to my .csproj file for my test project and editing it so that th...

3 Feb at 04:33

ServiceStack how to send a custom response after a logout?

To logout I use the logout service i.e. /auth/logout. But I'm always receiving an HTTP 200 response. I'm wondering if there is a way to send custom messages, e.g. LogoutFailed or LogoutSucceeded as ...

17 Sep at 14:42

ServiceStack Authentication IsAuthenticated always false for users authenticated via facebook

Hi am trying to use OAuth authentication FacebookAuthProvider provided by servicestack ``` var AppSettings = appHost.AppSettings; appHost.Plugins.Add(new AuthFeature(() => new CustomUserS...

19 Sep at 10:23

ServiceStack...'Memory is corrupt'

I have an application pool that Utilizes Service Stack. This application pool is getting recycled on its own due to some Errors. I am not very good at dumps and such, but the following is what I have ...

16 Sep at 21:45

PATCH in ServiceStack

I am trying to patch a object with the following code. ``` public object Patch(EditBlog request) { using (var db = _db.Open()) { try { request.DateUpdated = Da...

16 Sep at 17:36

"No registered Auth Providers found matching any provider" using client and ApiKeyAuthProvider

I have configured my serviceStack host with autentication via ApiKey. Using the browser it function but, using the client it give me this exception: "No registered Auth Providers found matching any ...

16 Sep at 15:4

UserAuth type in ServiceStack

I don't understand: Why the field "UserAuthId" in the Table "ApiKey" is of type and, in the other tables, is of type . I'd like to create a relation between UserAut table and ApiKey like that I di...

16 Sep at 07:47

How do I log in using the Git terminal?

I am trying to sign in using the Git command line, so that I can push my changes to a repository I have. I usually use a different account to the one I'm trying to use right now, and pushing works fin...

15 Sep at 18:55

Set decimal precision for query result object

I have a class supplied to me via Nuget. I don't have the source. ``` public class SpecialProductResult { public int id { get; set; } public decimal SpecialPercent {get;set;} } ``` I wa...

How to make two-way binding on Blazor component

I want to create custom input, so I created this component: `MyInputComponent.razor`: ``` <div> <input type="text" @bind="BindingValue" /> </div> @code { [Parameter] public string BindingVa...

8 Jan at 06:10

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."

I'm setting up webpack to my react project using yarn and this error appears: > ERROR in ./src/app.js 67:6 Module parse failed: Unexpected token (67:6) You may need an appropriate loader to handle ...

13 Sep at 13:35

Reading double values from a text file

Trying to read data from a text file using a C# application. There're multiple lines of data and each of them start with an integer and then followed by bunch of double values. A part of the text file...

14 Sep at 03:55

Using System.Windows.Forms classes in a .net core 3.0 preview9 project

How can we use classes like [Screen](https://learn.microsoft.com/de-de/dotnet/api/system.windows.forms.screen?view=netcore-3.0) in a .NET Core 3.0 WPF project? There are documentation pages for .NET C...

25 Sep at 14:42

Unable to change Power BI connection string using API

I'm trying to change Power BI connection string using their API `(Microsoft.IdentityModel.Clients.ActiveDirectory)`. Using this API, I'm able to publish .pbix file to my PBI account. But Getting `Bad ...

12 Sep at 09:54

ServiceStack ApiKey

I'm using serviceStack for my first api service. I have my own table "" where I store multiple api key for users. I use Entity Framework. If I use OrmLiteAuthRepository it create it's own apikey tab...

12 Sep at 08:20

Server Discovery And Monitoring engine is deprecated

I am using Mongoose with my Node.js app and this is my configuration: ``` mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, ...

How to read values from the Redis Stream using ServiceStack.Redis Library?

How to read values from the Redis using ServiceStack.Redis Library? For example, you can read all values from Redis using method.

How can I solve error gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config?

I want to run this project : [https://github.com/adonis-china/adonis-adminify](https://github.com/adonis-china/adonis-adminify) When I run `npm install`, there exist error : ``` > sqlite3@3.1.13 in...

10 Sep at 22:59

How to use ConfigurePrimaryHttpMessageHandler generic

I want to add an HttClientHandler for a Typed HttpClient in order to include certificate authentication. All the examples I'm finding on the internet are like this: ``` services.AddHttpClient<IMySer...

The LINQ expression could not be translated and will be evaluated locally

Im getting this WARNING in EntityFramework Core what is wrong? I already set MSSQL Datebase to Case Sensitive. Latin1_General_100_CS_AS ``` var test = await _context.Students .First...

Fiddler doesn't capture traffic with "GetAsync"

I'm trying to debug a call to my ServiceStack web service from a .net 472 application. Fiddler has always been the obvious choice for inspecting traffic in my other applications targeting the same ser...

Can you use IAsyncEnumerable in Razor pages to progressively display markup?

I've been playing around with Blazor and the IAsyncEnumerable feature in C# 8.0. Is it possible to use IAsyncEnumerable and await within Razor Pages to progressively display markup with data? Example...