CQRSMicroservices.ServiceFabric.WebService.ServiceEventSource.ServiceEventSource C# (CSharp) Method

ServiceEventSource() static private method

static private ServiceEventSource ( ) : Microsoft.ServiceFabric.Services.Runtime
return Microsoft.ServiceFabric.Services.Runtime
    static ServiceEventSource()
    {
      // A workaround for the problem where ETW activities do not get tracked until Tasks infrastructure is initialized.
      // This problem will be fixed in .NET Framework 4.6.2.
      Task.Run(() => { }).Wait();
    }