Ejemplo 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;
         }
     }
 }
Ejemplo n.º 2
0
 public override ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, formatInfo.Value, typeof(MessagesReader)));
 }
Ejemplo n.º 3
0
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams,
                                  XmlFormatInfo.NativeFormatInfo, typeof(MessagesReader)));
 }
Ejemplo n.º 4
0
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, connectParams, this));
 }
Ejemplo n.º 5
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, connectParams));
 }
Ejemplo n.º 6
0
 public override ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, @params => new MessagesReader(@params, formatInfo.Value, regexFactory, traceSourceFactory)));
 }
Ejemplo n.º 7
0
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, @params => new MessagesReader(@params, nativeFormatInfo, regexFactory, traceSourceFactory)));
 }
Ejemplo n.º 8
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, this, connectParams, providerStrategy));
 }
Ejemplo n.º 9
0
 public abstract ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams);
Ejemplo n.º 10
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, NativeXMLFormatFactory.Instance, connectParams,
                                  XmlFormatInfo.NativeFormatInfo, typeof(MessagesReader)));
 }