Wire up MiniProfiler to ASP.NET Core Web API Swagger
I found only [this manual](http://www.lambdatwist.com/webapi-profiling-with-miniprofiler-swagger/) describing how to make MiniProfiler work with ASP.NET Web API and Swagger UI, but I didn't find any m...
- Modified
- 7 Mar at 11:11
What is the point of the in modifier for classes
C# 7.2 introduces the `in` modifier for parameters which makes perfect sense for structs and in particular for readonly structs. It is also allowed to use it for a reference type ``` void Method(in ...
Is Microsoft Sync Framework alive?
According to the MS documentation Sync Framework Toolkit ([https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e](https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e)) is a legac...
- Modified
- 9 Mar at 06:55
How do I validate the DI container in ASP.NET Core?
In my `Startup` class I use the `ConfigureServices(IServiceCollection services)` method to set up my service container, using the built-in DI container from `Microsoft.Extensions.DependencyInjection`....
- Modified
- 7 Mar at 10:3
ServiceStack Razor MinifyHtml
Use the RazorFormat plugin in .netframework, which has a MinifyHtml property. Why does not the .netcore use this plug-in without the MinifyHtml property? in .netframework ``` Plugins.Add(new RazorFo...
- Modified
- 7 Mar at 09:50
Add-Migration Value cannot be null. Parameter name: language
I am trying to create a new migration but I get an System.ArgumentNullException saying: ``` System.ArgumentNullException: Value cannot be null. Parameter name: language at Microsoft.EntityFramewo...
- Modified
- 7 Mar at 09:33
Executing a T4 text template in Visual Studio Code
I created a T4 text template (`.tt`) file in Visual Studio Code, but unlike Visual Studio 2017 (or 2015 ,...) it won't generate the output file after saving the `.tt` file. How can I generate the outp...
- Modified
- 25 Feb at 18:32
What is "random-state" in sklearn.model_selection.train_test_split example?
Can someone explain me what `random_state` means in below example? ``` import numpy as np from sklearn.model_selection import train_test_split X, y = np.arange(10).reshape((5, 2)), range(5) X_train,...
- Modified
- 27 Feb at 00:55
Moving from EF6 to EF Core 2.0
I just started moving my MVC5 project with EF6x to MVC Core and EF Core but have a big problem with my entities configuration's. How you can migrate a EF6 Fluent configure to EF core? I need a guide ...
- Modified
- 13 Mar at 18:4
How to remove whitespace from a string in typescript?
In my angular 5 project, with typescript I am using the .trim() function on a string like this, But it is not removing the whitespace and also not giving any error. ``` this.maintabinfo = this.inner...
- Modified
- 7 Mar at 11:6
Difference between HttpClient PostAsync and SendAsync
Working on a project where a WPF front end, and trying to get a handle on async calls to `HttpClient` and I've been going around and around trying to get `PostAsync` to work, but it routinely appears ...
- Modified
- 22 Aug at 22:6
testing in .net framework
I have created a unit test project targetting .NET Framework 4.6.1. The tests appear in Test Explorer and run fine in Visual Studio 2017. I want to set up a build process, so I want to run the tests ...
- Modified
- 7 Mar at 09:26
VSCode format curly brackets on the same line c#
When using the Format Document command I'd like to change how the code formats. I'm completely new to VSCode and I'm still having trouble navigating the settings, so easy to understand replies would b...
- Modified
- 6 Mar at 16:48
How to implement interface with additional parameters/info per implementation
My MVC webapp allows users to add and delete images. The UI calls `ImageService.SaveImage(...)` in my business layer which internally uses a flag that tells the method to save to either Azure or the f...
- Modified
- 6 Mar at 15:24
ASP.NET Core 2.0 ngrok 502 Bad Gateway Error
I have been using ngrok with ASP.NET 4.X without encountering any problems. Unfortunately, when I try to forward app build in ASP.NET Core 2 I run into a problem that I can't solve. I tried following ...
- Modified
- 20 Jun at 09:12
Making ServiceStack RedisSentinel use a RedisManagerPool instead of a PooledRedisClientManager
Using ServiceStack version 4.0.40. I am trying get RedisSentinel to use the RedisManagerPool instead of the PooledRedisClientManager so it will allow clients above the client pool size. I see this...
- Modified
- 6 Mar at 14:25
ASP.NET Core include timestamp in all log entries
I have a ASP.NET Core 2.0 application with built-in console logging enabled. Here is the WebHost creation: ``` var webHost = WebHost.CreateDefaultBuilder(args) .UseUrls("http://localhost:...
- Modified
- 6 Mar at 10:15
Removing Conda environment
I want to remove a certain environment created with conda. How can I achieve that? Let's say I have an active `testenv` environment. I tried, by following documentation, with: ``` $ conda env remove ...
How to upload images and file to a server in Flutter?
I use a web service for image processing , it works well in Postman: [](https://i.stack.imgur.com/UAHqI.png) Now I want to make http request in flutter with Dart: ``` import 'package:http/htt...
- Modified
- 19 Jun at 06:18
Uwp app crash immediately after compiled with .net native toolchain
I'm creating an uwp app. My app works well in debug mode. But when compiled with .net native toolchain, which is essential to publish app to the Store, it crash immediately. I was trying to enable all...
- Modified
- 31 May at 15:15
Simple way to keep Front-end Angular 5 and back-end Web API code separate?
I have developed an Angular 5 app with plenty of moving parts (Services, Bootstrap, Angular Material, internal+external JS scripts, etc). Now I want to add database connectivity to this app as well (M...
- Modified
- 6 Mar at 05:27
'DbContextOptionsBuilder' does not contain a definition for UseNpgsql()
I am facing an issue while giving the connectionstring to get it connect to PostgreSQL through the `AddDbContext()` method in ConfigureServices method of Startup.cs I'm getting this error while calli...
- Modified
- 2 Dec at 09:15
Creating an IReadOnlyList<string>
How do I create an `IReadOnlyList<string>` with some values in it? I found an example of `ReadOnlyCollection` which seems to convert an existing collection to an `ReadOnlyCollection` but that approac...
- Modified
- 5 Mar at 16:28
Combining Flutter frontend with .NET Core backend for Android and iOS
Currently working for a company that use .NET (not Core) but want to switch to .NET Core and thought to do so by creating an app with a Flutter.io frontend and .NET Core backend. The app w/ backend is...
Container runtime network not ready: cni config uninitialized
I'm installing kubernetes(kubeadm) on centos VM running inside `Virtualbox`, so with yum I installed `kubeadm, kubelet` and `docker`. Now while trying to setup cluster with `kubeadm init --pod-netwo...
- Modified
- 20 Feb at 06:10