Esempio n. 1
0
 public LogProvider(ILogProviderHost host, IConnectionParams connectParams, Factory factory)
     :
     base(host,
          factory,
          connectParams,
          new DejitteringParams() { JitterBufferSize = 25 }
          )
 {
     using (trace.NewFrame)
     {
         try
         {
             eventLogIdentity = EventLogIdentity.FromConnectionParams(connectParams);
             StartLiveLogThread("EventLog listening thread");
         }
         catch (Exception e)
         {
             trace.Error(e, "Failed to initialize Windows Event Log reader. Disposing what has been created so far.");
             Dispose();
             throw;
         }
     }
 }
Esempio n. 2
0
 string ILogProviderFactory.GetUserFriendlyConnectionName(IConnectionParams connectParams)
 {
     return("Windows Event Log: " + EventLogIdentity.FromConnectionParams(connectParams).ToUserFriendlyString());
 }
Esempio n. 3
0
 public string GetUserFriendlyConnectionName(IConnectionParams connectParams)
 {
     return("Windows Event Log: " + EventLogIdentity.FromConnectionParams(connectParams).ToUserFriendlyString());
 }