bunceg

Results comments of bunceg

@ENikS Thanks for the reply... AddJwtBearer isn't really a thing that you explicitly register with DI - it's just an extension method that is exposed when you include a microsoft...

@ENikS - I have an example web api application that I can switch between Unity DI and in-built DI. How would you like me to send it to you?

@davidfowl @ENikS GitHub repository can be found here: https://github.com/grahambunce/unityinjectionjwtbearer I've been looking at the IdentityServer4 client (https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation/blob/master/src/IdentityServerAuthenticationExtensions.cs) as they have an explicit "builder.Services.AddSingleton(xxx)" step but when I dig into the...

@ENikS I'm not too sure how I can. My test project references Unity.Microsoft.DependencyInjection v2.1.3 and there is no RC candidate on nuget for this. So instead, I update one this...

@ENikS Unfortunately upgrading to 5.9.0 hasn't fixed the problem :(

@ENikS Hi, yes that's correct behaviour for the error scenario. Line 58 (first one) is called on startup and on each subsequent call. Line 68 (second one) is never called...

@ENikS Well.. at least you can reproduce so that's something. I don't know where to start either! Maybe ping the related thread for help? https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1078#issuecomment-456458869

+1 Lazy Loading. We are in the same position as john-surcome. We use Lazy Loading unless our profiling states its a problem; yes it's an issue for inexperienced ORM developers...

@gdoron I feel this is akin to the "_" vs "m_" vs "nothing at all" debate for class level naming conventions. There is no right and wrong I still believe...