async-await in asp.net core web api (not MVC)
I have this http post controller method to insert a new text message to db. Here I want to change this method to async method. I tried but still couldn’t do it. Can anyone help me? 🙂
I have this http post controller method to insert a new text message to db. Here I want to change this method to async method. I tried but still couldn’t do it. Can anyone help me? 🙂
I’m using asp.net Identity for signing in users in asp.net MVC Project and It’s working fine.
I’ve created new .net core 3.1 API project and used the Microsoft.Extensions.Identity.Core for checking usernames and passwords to generate tokens.
Severity Code Description Project File Line Suppression State
Error CS1061 ‘IServiceCollection’ does not contain a definition for
‘AddDefaultIdentity’ and no accessible extension method
‘AddDefaultIdentity’ accepting a first argument of type
‘IServiceCollection’ could be found (are you missing a using directive
or an assembly
reference?) WebHesab C:UsersDELLsourcereposWebHesabWebHesabStartup.cs 36 Active
I need to know how to generate a secure double defined on range [0.0 – 1.0] both inclusive.
I generate two big ulong numbers with RNGCryptoServiceProvider class, make sure that the second number is greater or equals to the first number and then divide the first number by the second number and cast result to double. Ideally, numbers 0.0d and 1.0d should be included in this range, but they’re never included. It must be something with mantissa with double values. Do you know how to fix it?
I have a MyMessages model that I put data into when the user logs in. it includes all the data needed.
for every message that they have I do the following in view
I need custom message for my request.
Started working on NEST api for elastic search recently, got stuck on following query, the data.e would be dynamically populated using the input from client in the HttpGet,
ex: user sends eventA,eventB,eventC then we would add in the should part:
I am using .Net Core 3.1 and am in the process of migrating to .Net 5.
What performance impacts could occur by frequently retrieving X509Certificate2 from X509Store?
If there are serious performance impacts what could I do to mitigate them?
I am developing a Single Page Application (SPA) with ReactJS and ASP.NET. I I am trying to execute an HTTP Request to an endpoint from client side code. I used the default ASP.NET SPA template and changed my configuration as shown below.