Hello, I am doing a project with SignalR in .Net Core Web API. I am stuck somewhere in this Project [closed]
Closed 3 days ago.
MemoryCache SetSize, does it limit cache entry size
I’m planning to use MemoryCache in my asp.net webapi project. Samples I found are using the below:
Middleware order not respected ASP.NET Web API
So i ‘m using two custom middlewares . One that validates the JWT Token on every request where it needs to be validated , and the one for the /admin routes . The problem is , even tho i specified the order in my Program.cs and the admin middleware is after the jwtTokenmiddleware , the admin one is executed first . Why is that ?
builder.Configuration.GetConnectionString(“DefaultConnection”) doesn’t work .NET 8
I’m making a project ASP .NET Core WEB API in .NET 8, and i can’t get the connection strings for my db to work, but if i hardcode the connection, it works just fine.
Cannot run ASP.NET web API outside VS
I’m creating a desktop app for Windows only and using Electron with ASP.NET Web api as an interface for a COM reference to antoher program. This is working great for me but when I want to launch the API outside VS (executing the binary) I get this error:
I want to create a validation attribute, that has a IUserService and will check if user with the same email is already exist? C# ASP.NET
I’m a newbie in asp.net. I want to create my custom validation attribute to check, if a user with the same email exists. So, I need to assign an IUserService through the constructor and dependency injection. After that, I want to use the IUserService method in the validation method to check if the user already exists.
Action Filter & Attributes
I am trying to set up action filter with attribute in ASP.NET Web api.