コード例 #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;
         }
     }
 }
コード例 #2
0
ファイル: XmlLogReader.cs プロジェクト: pnelson786/logjoint
 public override ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, formatInfo.Value, typeof(MessagesReader)));
 }
コード例 #3
0
ファイル: XmlLogReader.cs プロジェクト: pnelson786/logjoint
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams,
                                  XmlFormatInfo.NativeFormatInfo, typeof(MessagesReader)));
 }
コード例 #4
0
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, connectParams, this));
 }
コード例 #5
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, connectParams));
 }
コード例 #6
0
 public override ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, @params => new MessagesReader(@params, formatInfo.Value, regexFactory, traceSourceFactory)));
 }
コード例 #7
0
 ILogProvider ILogProviderFactory.CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, this, connectParams, @params => new MessagesReader(@params, nativeFormatInfo, regexFactory, traceSourceFactory)));
 }
コード例 #8
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new LogProvider(host, this, connectParams, providerStrategy));
 }
コード例 #9
0
 public abstract ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams);
コード例 #10
0
 public ILogProvider CreateFromConnectionParams(ILogProviderHost host, IConnectionParams connectParams)
 {
     return(new StreamLogProvider(host, NativeXMLFormatFactory.Instance, connectParams,
                                  XmlFormatInfo.NativeFormatInfo, typeof(MessagesReader)));
 }