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
- FormClosingEvent.cs
- assemblycache.cs
- AssemblyResourceLoader.cs
- ContentFileHelper.cs
- BitmapScalingModeValidation.cs
- ControlPropertyNameConverter.cs
- BaseResourcesBuildProvider.cs
- SiteMapHierarchicalDataSourceView.cs
- ReferencedCollectionType.cs
- DataListItem.cs
- MemberPathMap.cs
- __ComObject.cs
- _UriTypeConverter.cs
- TaskExceptionHolder.cs
- HeaderedItemsControl.cs
- XsdCachingReader.cs
- BitmapFrameEncode.cs
- COM2EnumConverter.cs
- SpnEndpointIdentity.cs
- XmlNullResolver.cs
- XamlValidatingReader.cs
- PasswordTextContainer.cs
- wmiprovider.cs
- WorkflowViewElement.cs
- SoapAttributeAttribute.cs
- OrderedEnumerableRowCollection.cs
- SecurityStateEncoder.cs
- DataGridTableCollection.cs
- CollectionBase.cs
- RelationshipConstraintValidator.cs
- SectionRecord.cs
- BridgeDataReader.cs
- FixedTextBuilder.cs
- EdmComplexPropertyAttribute.cs
- ToolboxItemWrapper.cs
- ScrollPattern.cs
- DataGridColumnFloatingHeader.cs
- ImageList.cs
- EdmEntityTypeAttribute.cs
- FormatVersion.cs
- TdsParser.cs
- DataGridLengthConverter.cs
- Set.cs
- MissingSatelliteAssemblyException.cs
- RolePrincipal.cs
- DateTimeConverter2.cs
- Size3D.cs
- SymbolResolver.cs
- MD5Cng.cs
- ClientCultureInfo.cs
- SqlBuffer.cs
- Blend.cs
- Selection.cs
- CodeCompileUnit.cs
- DefaultValueConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- SecurityCriticalDataForSet.cs
- HttpListener.cs
- ToolStripPanelRow.cs
- MobilePage.cs
- MenuItemStyle.cs
- RowToFieldTransformer.cs
- Assembly.cs
- StateMachineSubscription.cs
- AspNetSynchronizationContext.cs
- DoubleIndependentAnimationStorage.cs
- Empty.cs
- AssemblyFilter.cs
- LoadRetryHandler.cs
- LiteralTextContainerControlBuilder.cs
- BitmapData.cs
- ColorConvertedBitmap.cs
- ToolBarPanel.cs
- ToolboxDataAttribute.cs
- ShutDownListener.cs
- DiagnosticTrace.cs
- XAMLParseException.cs
- WizardForm.cs
- Vector3DAnimationBase.cs
- EntityModelSchemaGenerator.cs
- DocComment.cs
- DetailsViewRowCollection.cs
- SamlAuthorityBinding.cs
- DeviceSpecific.cs
- XmlReflectionImporter.cs
- ConfigUtil.cs
- AsymmetricSignatureDeformatter.cs
- DecoderReplacementFallback.cs
- ProxyWebPart.cs
- _ConnectStream.cs
- IncomingWebResponseContext.cs
- UncommonField.cs
- TemplatedMailWebEventProvider.cs
- XamlLoadErrorInfo.cs
- HeaderElement.cs
- ConfigXmlDocument.cs
- NativeMethodsOther.cs
- FlowchartDesigner.xaml.cs
- PerfProviderCollection.cs
- AttributeEmitter.cs