Debug Output window shows "Starting Thread" and "Stopping Thread" over and over

I converted our application from C# on Windows to `.Net Core` running on Linux with Ryder IDE framework. Our app uses several third-party frameworks such as ServiceStack, `RabbitMq` and `Mailkit` li...

How to document Swagger/Swashbuckle parameter descriptions when using [FromQuery]

My api endpoint: ``` [HttpGet] public ActionResult GetSomeData([FromQuery] SomeDataRequest request) { return File(returnImage(), "image/png"); } public class SomeDataRequest { /// <summary> ...

16 May at 17:31

OpenTracing doesn't send logs with Serilog

I'm trying to use [OpenTracing.Contrib.NetCore](https://github.com/opentracing-contrib/csharp-netcore) with Serilog. I need to send to Jaeger my custom logs. Now, it works only when I use default log...

No overload for method 'UseRouting' takes 1 arguments

I just updated to ASP.NET Core 3 Preview 5, now when I open my solution and try to build it throws the error 'No overload for method 'UseRouting' takes 1 arguments' in the Startup.cs file in the Confi...

RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version! Fix

Whenever I run my code with requests or do a pip install I get this message ``` /usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0....

15 May at 18:56

exclude certain projects from using Directory.Build.props

i have a new visual studio solution that has around 350 projects. it takes visual studio a lot of time to compile the .sln file so i implemented Directory.Build.props to avoid copying of references th...

15 May at 18:15

Using authProvider with MS SDK for graph calls in C#

I'm trying create a C# console application to connect to graph API and get a list of users from AzureAD from a tenant. I have registered the app and the admin has given me the following - - - Using...

HttpClient has no definition for GetJsonAsync

I'm currently tapping into Blazor, and want to move my code so it's more readable and reusable. In my razor component, the Method works flawlessly - in a Class, it doesn't. In my component, I can sim...

9 Dec at 08:25

C#: How to invoke a SOAP service requiring client-side authentication with certificates installed at runtime

I have an application deployed to IIS that needs to invoke a SOAP service. It's using WCF from .NET Framework. That SOAP service requires that requests made be authenticated with a client-side certifi...

15 May at 10:27

How to check if element exists using Cypress.io

How to check if element is present or not, so that certain steps can be performed if element is present. Else certain different steps can be performed if element is not present. I tried something lik...

Inject generic interface in .NET Core

I want to inject this interface to my controllers: ``` public interface IDatabaseService<T> { IEnumerable<T> GetList(); ... } ``` I want to use generic, because in my `WebApi` project i have ...

Why am I getting Unknown error in line 1 of pom.xml?

Getting unknown error at Line 1 in `pom.xml` in Eclipse IDE. It was working fine till yesterday, but all of a sudden after updating my project from master and after fixing merge conflicts getting "Unk...

18 May at 06:31

How to make Dispose await for all async methods?

I have disposable class with async methods. ``` class Gateway : IDisposable { public Gateway() {} public void Dispose() {} public async Task<Data> Request1 () {...} public async Task<Data> R...

Is there a difference between !(a == b) and a != b

I have just seen code that used `if(!(a == b))` instead of the more commonly seen `if(a != b)` in C#. I am wondering if there is a difference between the two in C#?

14 May at 18:12

This request is not authorized to perform this operation. Azure blobClient

I have the following code to return a list of containers using the `WindowsAzure.Storage` nuget package: ``` public static class AzureBlobStorageClient { public static CloudBlobClient GetClient(s...

14 May at 12:42

How should we use async await?

I was looking at how to use async await, but I do not quite get it when we have multiple methods invoking each other. Should we always use await or should we only use await when we are actually ready ...

14 May at 16:22

cx_Oracle error. DPI-1047: Cannot locate a 64-bit Oracle Client library

I installed the library and when trying to access SQL in jupyter notebook with my credentials the following error appears: DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "The ...

How to pass arguments in command line using dotnet?

the command `dotnet myapp.dll -- [4, 3, 2]` throws the exception `System.FormatException: Input string was not in a correct format`. I do not know the syntax. How should I pass arguments correctly? I ...

13 May at 08:40

Using `is` operator with value type tuples gives error

I am trying to check if an `object` variable is `(int, int)` and if so I will use the casted variable so I have tried the codes below: ``` //this one gives the error public void MyMethodWithIs(object...

18 May at 17:29

ServiceStack - Cannot get headers from in Typescript client ResponseFilter

I set up a `ServiceStack` application running on `port 5001` Using the typescript client for ServiceStack (using `typescript-ref`), I generated the `dtos` I need to intercept the responses because s...

How to correctly calculate Fisher Transform indicator

I'm writing a small technical analysis library that consists of items that are not availabile in TA-lib. I've started with an example I found on [cTrader](https://ctrader.com/algos/indicators/show/12)...

20 Jun at 09:12

OrmLite Contains() not working as expected

If I try to get all users with a certain role like this: ``` _db.Select<UserAuthCustom>(x => x.Roles.Contains("Bloggers")); ``` Then it works as expected and returnsthe users. If I try to do it wi...

11 May at 22:21

predefined type System.Range is not defined or imported

I'm using C# 8.0 (beta) in my UWP app with Visual Studio 2019 v16.0.2. I was trying to use the new range operator of C# 8 : `str[start..index]` and then two errors showed up: > Predefined type `System...

21 May at 14:59

A suitable constructor for type 'RestDataService' could not be located

While running the .Net Core 2.0 API endpoint getting below error. A suitable constructor for type 'RestDataService' could not be located. Ensure the type is concrete and services are registered for a...

11 May at 05:56

System.Reflection.AmbiguousMatchException: 'Ambiguous match found.'

I am trying to get the `MethodInfo` from a method `TableExists<T>` so I can call it with a type. The method is declared inside `OrmLiteSchemaApi` class. There are 2 overloads: ``` public static boo...

10 May at 18:29