protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     try
     {
         Action <Type> action = delegate(Type type)
         {
             MethodInfo    method = type.GetMethod("GetProbeEvents", BindingFlags.Static | BindingFlags.Public);
             List <object> list   = method.Invoke(null, new object[]
             {
                 this.guid
             }) as List <object>;
             list.ForEach(delegate(object e)
             {
                 base.WriteObject(e);
             });
             if (list.Count == 0)
             {
                 this.WriteWarning(Strings.NoSystemProbeEventFound(this.guid));
             }
         };
         SystemProbeAssemblyHelper.Invoke(this, action);
     }
     finally
     {
         TaskLogger.LogExit();
     }
 }
示例#2
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     try
     {
         Action <Type> action = delegate(Type type)
         {
             DateTimeOffset dateTimeOffset  = this.StartTime ?? (DateTimeOffset.UtcNow - TimeSpan.FromHours(24.0));
             DateTimeOffset dateTimeOffset2 = this.EndTime ?? DateTimeOffset.UtcNow;
             MethodInfo     method          = type.GetMethod("GetProbes", BindingFlags.Static | BindingFlags.Public);
             List <Guid>    list            = method.Invoke(null, new object[]
             {
                 dateTimeOffset,
                 dateTimeOffset2
             }) as List <Guid>;
             list.ForEach(delegate(Guid g)
             {
                 base.WriteObject(g);
             });
             if (list.Count == 0)
             {
                 this.WriteWarning(Strings.NoSystemProbesFound(dateTimeOffset.DateTime, dateTimeOffset2.DateTime));
             }
         };
         SystemProbeAssemblyHelper.Invoke(this, action);
     }
     finally
     {
         TaskLogger.LogExit();
     }
 }