What is the difference between ConcurrencyLimit and PrefetchCount?
What is the difference between ConcurrencyLimit and PrefetchCount in masstransit? and what is the optimize configuration for them.
- Modified
- 29 Jul at 17:5
C# Interactive vs Immediate Window. Differences, purposes and use-cases
These two windows look pretty similar to me, though I've found some differences in using them. Can somebody please explain what the main differences are and what purposes the windows serve?
- Modified
- 29 Jul at 11:41
How to set a file size limit on a self-hosted (AppSelfHostBase) Servicestack service (RequestStream)?
A self-hosted service stack host using AppSelfHostBase has a service method: ``` public object Any(UploadImageRequest request) { // Need to make sure the file is not too large! } [Route("/Uploa...
- Modified
- 28 Jul at 17:35
Gradle failure A problem occurred evaluating project ':app'
I am trying to build the gradle for my app but the build fails I've looked around some other questions regarding to this issue and I couldn't solve it. Also, I have tried changing the gradle build to...
Adding a handler to all clients created via IHttpClientFactory?
Is there a way to add a handler to all clients created by the IHttpClientFactory? I know you can do the following on named clients: ``` services.AddHttpClient("named", c => { c.BaseAddress = new U...
- Modified
- 1 Mar at 17:36
How to make an EditForm Input that binds using oninput rather than onchange?
Suppose I want to use an `EditForm`, but I want the value binding to trigger every time the user types into the control instead of just on blur. Suppose, for the sake of an example, that I want an `In...
- Modified
- 8 Jul at 08:32
Where is "ildasm" in Visual Studio 2019?
I used to be able to run `ildasm` in the Developer Command Prompt for Visual Studio 2017. With Visual Studio 2019, `ildasm` is no longer available: ``` C:\Program Files (x86)\Microsoft Visual Studio\...
- Modified
- 26 Jul at 15:33
The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.3 was found instead
I'm getting the following error when I do npm run build: > The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.3 was found instead. I've tried following things separately: > npm i...
- Modified
- 26 Jul at 08:31
Specify example requests for swagger's "Try it out"
Is there a way to specify example requests for swagger? Maybe even multiple ones? The `Try it out` button shows only generic values like: ``` { "firstName": "string", "lastName": "string" }...
- Modified
- 16 Sep at 13:26
MassTransit - Can Multiple Consumers All Receive Same Message?
I have one .NET 4.5.2 Service Publishing messages to RabbitMq via MassTransit. And instances of a .NET Core 2.1 Service Consuming those messages. At the moment competing instances of the .NET core...
- Modified
- 25 Jul at 20:36
Converting a nullable reference type to a non-nullable reference type, less verbosely
Is there a way I can convert a nullable reference type to non-nullable reference type in the below example less verbosely? This would be for when the nullable reference flag for the compiler is enab...
- Modified
- 10 Apr at 20:34
How to put the "Display Name" in a label on a Blazor page?
I have the following model: ``` class User { [Display(Name = "Display Name")] public string Name { get; set; } } ``` In standard Razor I would do something like the following to get the "Disp...
How do you inject the HttpMessageHandler into the HttpClient object using ASP.NET Core dependency injection?
Without using ASP.NET Core's DI, you can put a ClientHandler which contains a cookie container into the HttpClient object using its constructor, something similar to this: ``` var cookieContainer = n...
- Modified
- 25 Jul at 01:31
Run ServiceStack from Sub Directory
I am using ServiceStack asp.net core 5.5. My client wants to deploy my API which runs inside a docker container to a subdirectory on their main API domian. How do I pre-fix a sub directory so that e...
- Modified
- 24 Jul at 16:31
Cannot implicitly convert type 'Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<T>' to 'T'
I am using ASP.NET core 2.2 for developing web apis. I have the following method in repository class: ``` public async Task<Articles> AddAsync(Articles article) { return await _context.Articles.Ad...
- Modified
- 24 Jul at 15:30
Calling Team Foundation Server(TFS) APIs via SQL Server stored procedure
I am creating my first ASP.NET MVC project. I have started with connecting TFS and adding bugs in to TFS via C#. ``` var tfsURI = new Uri("http://test:8080/tfs"); var networkCredential1 = new Network...
- Modified
- 3 Aug at 21:25
How to disable night mode in my application even if night mode is enable in android 9.0 (pie)?
I created my application before the android pie has been released, in every layout I put `android: background = "white"` it works fine in every device, but when my brother installed the application an...
- Modified
- 24 Jul at 04:22
Generated typescript dtos use angle bracket assertion
We are generating our DTOs using the provided Typescript ServicStack reference tool but it is resulting in eslint warnings. The lint rule that is failing is no-angle-bracket-type-assertion, refer to ...
- Modified
- 24 Jul at 00:27
HttpContext.SignInAsync vs. SigninManger.SignInAsync
Can someone please explain to me what they are doing in background? I had problems when using `HttpContext.SignInAsync` with the `SecurityStamp`. After using `SigninManger.SignInAsync` the error nev...
- Modified
- 24 Jul at 19:18
Error [ERR_REQUIRE_ESM]: How to use es6 modules in node 12?
From [https://2ality.com/2019/04/nodejs-esm-impl.html](https://2ality.com/2019/04/nodejs-esm-impl.html) Node 12 should support es6 modules; however, I just keep getting the error: Question: How do I ...
- Modified
- 23 Jul at 17:58
Replace Google Material Icons with Own Icons, Keep Same Content Code or Create New One
Google Material Icons has different variations in Icon font Families: Rounded, Sharp, TwoTone, etc. The UX team is taking some icons, and customizing them bit, little thicker or minor touch up. 1. ...
- Modified
- 23 Jul at 22:6
How to fix error "Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly"
I'm trying to execute a Powershell script from an asp.net webpage and I keep getting this error when it tries to execute the script. I have tried 2 methods of executing the script and both give me the...
- Modified
- 23 Jul at 14:31
Module not found: Error: Can't resolve 'fs' in
Oke, I upgraded Angular from 6 to 8. But I stil get errors. I found on internet a solution that for a lot of users helped. But in this case it doesn't helped me. So my package.json file looks like thi...
- Modified
- 26 Oct at 08:24
'static' value appears to reset after function call
I found a lot of articles about statics ([MSDN](https://learn.microsoft.com/pl-pl/dotnet/csharp/language-reference/keywords/static), [MSDN 2](https://learn.microsoft.com/pl-pl/dotnet/csharp/programmin...
- Modified
- 25 Jul at 22:8
'ConfigurationBuilder' does not contain a definition for 'AddJsonFile'
I have the following error: > Program.cs(15,72): error CS1061: 'ConfigurationBuilder' does not contain a definition for 'AddJsonFile' and no accessible extension method 'AddJsonFile' accepting a first...
- Modified
- 3 Feb at 08:55