Quantcast
Channel: User Pure.Krome - Stack Overflow
Browsing all 73 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using NSwag to generate a C# client incorrectly creates 2x partial classes...

I'm trying to generate an NSwag C# Client, from an OpenAPI json file.When I do this, I do get a client file generated, but it doesn't compile. It has created 2x partial classes in the same .cs...

View Article


How to send an HTTP 4xx-5xx response with CORS headers in an ASPNET.Core web...

I have a standard ASP.NET Core 2 Web App acting as a REST/WebApi. For one of my endpoints I return an HTTP 400 when the user provides bad search/filter querystring arguments.Works great with Postman....

View Article


Only have one instance of an Azure Function?

I can't find any documentation on how to force an Azure Function v4 into a singleton, so as the function app scales out (for reasons), one of the functions doesn't scale out.My function is a TIMER...

View Article

How to process lots of messages on an Azure Queue with a WebJob?

I have a pretty simple queue which happens to have heaps of messages on it (by design). Heaps can be "thousands" here.Right now I'm playing around with using Azure Web Jobs with a Queue Trigger to...

View Article

How can I use FakeItEasy with HttpClient, in a unit test?

I'm trying to figure out how to use FakeItEasy with the HttpClient, given the following code:public Foo(string key, HttpClient httpClient = null){ .. }public void DoGet(){ .... if (_httpClient == null)...

View Article


Is it possible to expose an API for my own WebSite ... but use oAuth for the...

Currently I expose an API for my web site. Works great .. and I use Basic Authentication to authenticate users to get access to the data.e.g.http://www.MyWebSite.com <-- main...

View Article

How to use a stored procedure with my Entity Framework v4 + POCOs

I've got a very simple Entity Framework project with POCO Entities. I've got a single stored procedure which I have imported using the EF Wizard.I've then made my own EF Entity which I've then Add...

View Article

How can I create a RuleSet with a .NET FluentValidation InlineValidator?

I'm creating an InlineValidator (from the FluentValidation nuget package/library).var validator = new InlineValidator<Person>;validator.RuleFor(x =>...

View Article


How can I unzip a file to a .NET memory stream?

I have files (from 3rd parties) that are being FTP'd to a directory on our server. I download them and process them even 'x' minutes. Works great.Now, some of the files are .zip files. Which means I...

View Article


Comment by Pure.Krome on How to add Azure App Service Wildcard Custom Domian

I tried adding asuid.* TXT and Azure DNS was not allowing me to do that :(

View Article

Answer by Pure.Krome for Quartz.NET implementation doesn't jive with tutorials

The documentation is aimed at the 1.0 API. Things have now changed, and yes, they are breaking changes.Check this official migration page out. You might find some solutions in there.

View Article

Comment by Pure.Krome on Visual Studio showing Merge Commit editor when going...

@ElpieKay answered in the O.P.

View Article

How can I keep track of how many calls I make to other third party API's...

In a number of our web applications, we make calls to third part API's like Twitter, etc. Nothing new there.What we would like to do is to grab some statistics about our web site usage -> how many...

View Article


Image may be NSFW.
Clik here to view.

How to create an RS256 JWT using JWT.IO website?

I'm trying to create a demo/test RS256 JWT using JWT.IO website. Every time I try and create the JWT on that website it says the signature is invalid.The signature PUBLIC KEY was auto-provided by the...

View Article

Comment by Pure.Krome on How to return a TypedResults.UnprocessableEntity in...

What happens if my method is returning multiple IResults ?

View Article


Image may be NSFW.
Clik here to view.

How to return a TypedResults.UnprocessableEntity in an ASP.NET Core Minimal API?

I'm trying to return an fffff from a Minimal API. When I set up the return type, I get a weird error:the non-generic type 'IResults' cannot be used with type arguments.public static async...

View Article

How do I performance test my ASP.NET MVC website?

I'm wanting to find out how many requests/sec my asp.net mvc site (and asp.net mvc api) can handle. I've googled for some help and stumbled on this great slide show which talks about exactly the things...

View Article


How can I convert a Sql Server 2008 DateTimeOffset to a DateTime

I'm hoping to convert a table which has a DATETIMEOFFSET field, down to a DATETIME field BUT recalculates the time by taking notice of the offset. This, in effect, converts the value to...

View Article

Comment by Pure.Krome on Can i reverse engineer my own dll?

Take my ✅ for helping an ancient question, arise again! "Cast 'Raise Dead' on question" 🩻. Also, answer was helpful ⭐

View Article

Can i reverse engineer my own dll?

We've got a .NET project at work, which we lost (human error). The person who wrote the code said she had three projects in the solution => one webform, one winform and one class library.Now, we...

View Article
Browsing all 73 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>