No OWIN authentication manager is associated with the request

If you are getting this error after adding swagger to your API project here is the solution to avoid this error: In App_Start go to WebApiConfig.cs and comment the following line: config.SuppressDefaultHostAuthentication(); config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));

Threading’s C#

Threads run in parallel within a single process, to understand why tread is useful, you can imagine application where one thread can fetch data in the background,while another thread can display the data as it arrives. When Treads are useful: Multithreading is useful when one thread is waiting for response, another thread can take advantage of using CPU. … Continue reading Threading’s C#

Parallel execution of code C#

Introduction to Thread Multithreading is solution to parallel execution of code in C#. A thread is an independent execution path. Thread can run simultaneously with other threads. To use this Technic in C# you have to add namespaces call: using System; using System.Threading; lets look at simple example: class FirstThread { static void Main () { Thread thisThread = new Thread … Continue reading Parallel execution of code C#