コード例 #1
0
 public void AuthorizationCheckPerformed(object sender, AuthorizationOperationEventArgs e)
 {
     if (PerformanceCountersEnabled)
     {
         authorizationCheckPerformedCounter.Increment();
     }
     if (WmiEnabled)
     {
         FireManagementInstrumentation(new AuthorizationCheckPerformedEvent(instanceName, e.Identity, e.RuleName));
     }
 }
コード例 #2
0
 public void AuthorizationCheckPerformed(object sender, AuthorizationOperationEventArgs e)
 {
     if (PerformanceCountersEnabled) authorizationCheckPerformedCounter.Increment();
     if (WmiEnabled) ManagementInstrumentation.Fire(new AuthorizationCheckPerformedEvent(instanceName, e.Identity, e.RuleName));
 }