114 references to AuditLevel
System.ServiceModel (114)
System\ServiceModel\AuditLevel.cs (7)
19public static bool IsDefined(AuditLevel auditLevel) 21return auditLevel == AuditLevel.None 22|| auditLevel == AuditLevel.Success 23|| auditLevel == AuditLevel.Failure 24|| auditLevel == AuditLevel.SuccessOrFailure; 27public static void Validate(AuditLevel value) 32typeof(AuditLevel)));
System\ServiceModel\Channels\HttpChannelListener.cs (19)
520if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 521WriteAuditEvent(AuditLevel.Failure, (authenticationContext.LogonUserIdentity != null) ? authenticationContext.LogonUserIdentity.Name : String.Empty, exception); 527if (AuditLevel.Success == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Success)) 528WriteAuditEvent(AuditLevel.Success, (authenticationContext.LogonUserIdentity != null) ? authenticationContext.LogonUserIdentity.Name : String.Empty, null); 579if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 581WriteAuditEvent(AuditLevel.Failure, (identity != null) ? identity.Name : ((wid != null) ? wid.Name : String.Empty), exception); 588if (AuditLevel.Success == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Success)) 590WriteAuditEvent(AuditLevel.Success, (identity != null) ? identity.Name : ((wid != null) ? wid.Name : String.Empty), null); 615protected void WriteAuditEvent(AuditLevel auditLevel, string primaryIdentity, Exception exception) 619if (auditLevel == AuditLevel.Success) 633if (Fx.IsFatal(auditException) || auditLevel == AuditLevel.Success) 670if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 674WriteAuditEvent(AuditLevel.Failure, String.Empty, exception); 699WriteAuditEvent(AuditLevel.Failure, String.Empty, exception);
System\ServiceModel\Channels\HttpsChannelListener.cs (18)
218if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 219WriteAuditEvent(AuditLevel.Failure, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, exception); 225if (AuditLevel.Success == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Success)) 226WriteAuditEvent(AuditLevel.Success, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, null); 279if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 280WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception); 286if (AuditLevel.Success == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Success)) 287WriteAuditEvent(AuditLevel.Success, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, null); 335if (result != HttpStatusCode.OK && (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure))) 339WriteAuditEvent(AuditLevel.Failure, (clientCertificate != null) ? SecurityUtils.GetCertificateId(clientCertificate) : String.Empty, exception); 383if (result != HttpStatusCode.OK && (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure))) 387WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception);
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (9)
232if (AuditLevel.Failure == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Failure)) 233WriteAuditEvent(AuditLevel.Failure, certificate, wsid, null); 239if (result != null && AuditLevel.Success == (this.AuditBehavior.MessageAuthenticationAuditLevel & AuditLevel.Success)) 240WriteAuditEvent(AuditLevel.Success, certificate, wsid, null); 245void WriteAuditEvent(AuditLevel auditLevel, X509Certificate2 certificate, WindowsSidIdentity wsid, Exception exception) 259if (auditLevel == AuditLevel.Success) 273if (Fx.IsFatal(auditException) || auditLevel == AuditLevel.Success)
System\ServiceModel\Channels\SessionConnectionReader.cs (4)
581WriteAuditEvent(securityUpgradeAcceptor, AuditLevel.Success, null); 607WriteAuditEvent(securityUpgradeAcceptor, AuditLevel.Failure, exception); 621void WriteAuditEvent(StreamSecurityUpgradeAcceptor securityUpgradeAcceptor, AuditLevel auditLevel, Exception exception) 642if (auditLevel == AuditLevel.Success)
System\ServiceModel\Channels\SingletonConnectionReader.cs (4)
825WriteAuditEvent(securityUpgradeAcceptor, AuditLevel.Success, null); 834WriteAuditEvent(securityUpgradeAcceptor, AuditLevel.Failure, exception); 848void WriteAuditEvent(StreamSecurityUpgradeAcceptor securityUpgradeAcceptor, AuditLevel auditLevel, Exception exception) 868if (auditLevel == AuditLevel.Success)
System\ServiceModel\Configuration\Properties.cs (4)
3375properties.Add(new ConfigurationProperty("serviceAuthorizationAuditLevel", typeof(System.ServiceModel.AuditLevel), System.ServiceModel.AuditLevel.None, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.AuditLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 3376properties.Add(new ConfigurationProperty("messageAuthenticationAuditLevel", typeof(System.ServiceModel.AuditLevel), System.ServiceModel.AuditLevel.None, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.AuditLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\ServiceSecurityAuditElement.cs (4)
37public AuditLevel ServiceAuthorizationAuditLevel 39get { return (AuditLevel)base[ConfigurationStrings.ServiceAuthorizationAuditLevel]; } 45public AuditLevel MessageAuthenticationAuditLevel 47get { return (AuditLevel)base[ConfigurationStrings.MessageAuthenticationAuditLevel]; }
System\ServiceModel\Description\ServiceSecurityAuditBehavior.cs (8)
16internal const AuditLevel defaultServiceAuthorizationAuditLevel = AuditLevel.None; 17internal const AuditLevel defaultMessageAuthenticationAuditLevel = AuditLevel.None; 21AuditLevel serviceAuthorizationAuditLevel; 22AuditLevel messageAuthenticationAuditLevel; 67public AuditLevel ServiceAuthorizationAuditLevel 82public AuditLevel MessageAuthenticationAuditLevel
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (5)
26AuditLevel messageAuthenticationAuditLevel; 73if (AuditLevel.Failure == (this.messageAuthenticationAuditLevel & AuditLevel.Failure)) 107if (AuditLevel.Success == (this.messageAuthenticationAuditLevel & AuditLevel.Success))
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (5)
26AuditLevel serviceAuthorizationAuditLevel; 78if (AuditLevel.Failure == (this.serviceAuthorizationAuditLevel & AuditLevel.Failure)) 114if (AuditLevel.Success == (this.serviceAuthorizationAuditLevel & AuditLevel.Success))
System\ServiceModel\Dispatcher\DispatchRuntime.cs (6)
30AuditLevel serviceAuthorizationAuditLevel; 31AuditLevel messageAuthenticationAuditLevel; 224public AuditLevel ServiceAuthorizationAuditLevel 245public AuditLevel MessageAuthenticationAuditLevel 609AuditLevel.Success == (this.serviceAuthorizationAuditLevel & AuditLevel.Success));
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (5)
44AuditLevel auditLevel = ServiceSecurityAuditBehavior.defaultMessageAuthenticationAuditLevel; 259if (AuditLevel.Success == (this.auditLevel & AuditLevel.Success)) 277if (AuditLevel.Failure == (this.auditLevel & AuditLevel.Failure))
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (6)
53AuditLevel messageAuthenticationAuditLevel; 323public AuditLevel MessageAuthenticationAuditLevel 820if (AuditLevel.Success == (this.messageAuthenticationAuditLevel & AuditLevel.Success)) 839if (AuditLevel.Failure == (this.messageAuthenticationAuditLevel & AuditLevel.Failure))
System\ServiceModel\Security\SecurityProtocol.cs (4)
809if (AuditLevel.Success == (this.factory.MessageAuthenticationAuditLevel & AuditLevel.Success)) 829if (AuditLevel.Failure == (this.factory.MessageAuthenticationAuditLevel & AuditLevel.Failure))
System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
108AuditLevel serviceAuthorizationAuditLevel; 109AuditLevel messageAuthenticationAuditLevel; 260public AuditLevel ServiceAuthorizationAuditLevel 274public AuditLevel MessageAuthenticationAuditLevel
System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (2)
63public AuditLevel MessageAuthenticationAuditLevel 67return GetPropertyOrDefault<AuditLevel>(MessageAuthenticationAuditLevelProperty, ServiceSecurityAuditBehavior.defaultMessageAuthenticationAuditLevel);