Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / WindowsServiceCredential.cs / 1 / WindowsServiceCredential.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { public sealed class WindowsServiceCredential { bool allowAnonymousLogons = SspiSecurityTokenProvider.DefaultAllowUnauthenticatedCallers; bool includeWindowsGroups = SspiSecurityTokenProvider.DefaultExtractWindowsGroupClaims; bool isReadOnly; internal WindowsServiceCredential() { // empty } internal WindowsServiceCredential(WindowsServiceCredential other) { this.allowAnonymousLogons = other.allowAnonymousLogons; this.includeWindowsGroups = other.includeWindowsGroups; this.isReadOnly = other.isReadOnly; } public bool AllowAnonymousLogons { get { return this.allowAnonymousLogons; } set { ThrowIfImmutable(); this.allowAnonymousLogons = value; } } public bool IncludeWindowsGroups { get { return this.includeWindowsGroups; } set { ThrowIfImmutable(); this.includeWindowsGroups = value; } } internal void MakeReadOnly() { this.isReadOnly = true; } void ThrowIfImmutable() { if (this.isReadOnly) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoleServiceManager.cs
- PartManifestEntry.cs
- SecureStringHasher.cs
- MenuBase.cs
- NavigationService.cs
- QuaternionAnimationUsingKeyFrames.cs
- Rect3DValueSerializer.cs
- ThicknessAnimation.cs
- ProcessDesigner.cs
- MediaTimeline.cs
- FileDialog.cs
- ButtonRenderer.cs
- TraceContextEventArgs.cs
- TextModifier.cs
- recordstatefactory.cs
- DeviceFiltersSection.cs
- OleDbTransaction.cs
- NativeMethods.cs
- SafeNativeMethods.cs
- TcpSocketManager.cs
- PathGeometry.cs
- XmlImplementation.cs
- QuaternionValueSerializer.cs
- PointConverter.cs
- CounterCreationData.cs
- CodeIndexerExpression.cs
- IODescriptionAttribute.cs
- TraceContextEventArgs.cs
- DataSetUtil.cs
- ResourceReferenceExpressionConverter.cs
- ContentTextAutomationPeer.cs
- OptimalTextSource.cs
- Metafile.cs
- GuidConverter.cs
- ShapingEngine.cs
- BaseProcessor.cs
- WmpBitmapDecoder.cs
- regiisutil.cs
- CompilationLock.cs
- LabelLiteral.cs
- StringPropertyBuilder.cs
- ZipIOLocalFileHeader.cs
- KeyPressEvent.cs
- RijndaelManagedTransform.cs
- DSACryptoServiceProvider.cs
- LocatorBase.cs
- SessionStateContainer.cs
- MetadataException.cs
- OracleRowUpdatedEventArgs.cs
- VoiceSynthesis.cs
- SimpleTextLine.cs
- DependentList.cs
- RegistrationServices.cs
- SerTrace.cs
- _SingleItemRequestCache.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ApplyImportsAction.cs
- PreservationFileWriter.cs
- TypeConverterHelper.cs
- CodeIdentifiers.cs
- FirewallWrapper.cs
- ReferentialConstraint.cs
- RSAProtectedConfigurationProvider.cs
- DesignerGeometryHelper.cs
- ParsedAttributeCollection.cs
- PointLightBase.cs
- IPGlobalProperties.cs
- AnnotationResource.cs
- ExeConfigurationFileMap.cs
- DbProviderFactoriesConfigurationHandler.cs
- NavigatingCancelEventArgs.cs
- XsltConvert.cs
- SpellerStatusTable.cs
- FormCollection.cs
- EnumUnknown.cs
- WindowHideOrCloseTracker.cs
- AsnEncodedData.cs
- IndexedEnumerable.cs
- GetUserPreferenceRequest.cs
- FixedPageStructure.cs
- HashRepartitionEnumerator.cs
- Attributes.cs
- MobileRedirect.cs
- MDIWindowDialog.cs
- HttpFormatExtensions.cs
- PageSettings.cs
- Panel.cs
- HttpProxyTransportBindingElement.cs
- WebDisplayNameAttribute.cs
- BooleanFunctions.cs
- DetailsViewCommandEventArgs.cs
- TransactionContextValidator.cs
- TextTreeRootNode.cs
- EdmEntityTypeAttribute.cs
- MailBnfHelper.cs
- ObjectSecurityT.cs
- ObjectContext.cs
- SchemaLookupTable.cs
- SynchronizingStream.cs
- sortedlist.cs