Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Policy / DefaultAuthorizationContext.cs / 1305376 / DefaultAuthorizationContext.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Policy { using System.Collections.Generic; using System.Collections.ObjectModel; using System.IdentityModel.Claims; class DefaultAuthorizationContext : AuthorizationContext { static DefaultAuthorizationContext empty; SecurityUniqueId id; ReadOnlyCollectionclaimSets; DateTime expirationTime; IDictionary properties; public DefaultAuthorizationContext(DefaultEvaluationContext evaluationContext) { this.claimSets = evaluationContext.ClaimSets; this.expirationTime = evaluationContext.ExpirationTime; this.properties = evaluationContext.Properties; } public static DefaultAuthorizationContext Empty { get { if (empty == null) empty = new DefaultAuthorizationContext(new DefaultEvaluationContext()); return empty; } } public override string Id { get { if (this.id == null) this.id = SecurityUniqueId.Create(); return this.id.Value; } } public override ReadOnlyCollection ClaimSets { get { return this.claimSets; } } public override DateTime ExpirationTime { get { return this.expirationTime; } } public override IDictionary Properties { get { return this.properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Policy { using System.Collections.Generic; using System.Collections.ObjectModel; using System.IdentityModel.Claims; class DefaultAuthorizationContext : AuthorizationContext { static DefaultAuthorizationContext empty; SecurityUniqueId id; ReadOnlyCollection claimSets; DateTime expirationTime; IDictionary properties; public DefaultAuthorizationContext(DefaultEvaluationContext evaluationContext) { this.claimSets = evaluationContext.ClaimSets; this.expirationTime = evaluationContext.ExpirationTime; this.properties = evaluationContext.Properties; } public static DefaultAuthorizationContext Empty { get { if (empty == null) empty = new DefaultAuthorizationContext(new DefaultEvaluationContext()); return empty; } } public override string Id { get { if (this.id == null) this.id = SecurityUniqueId.Create(); return this.id.Value; } } public override ReadOnlyCollection ClaimSets { get { return this.claimSets; } } public override DateTime ExpirationTime { get { return this.expirationTime; } } public override IDictionary Properties { get { return this.properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- login.cs
- DesignSurfaceServiceContainer.cs
- IssuedTokenClientElement.cs
- CacheChildrenQuery.cs
- MenuItemBindingCollection.cs
- UIElementParaClient.cs
- TextServicesLoader.cs
- SHA256.cs
- LambdaCompiler.Logical.cs
- PrimaryKeyTypeConverter.cs
- KnownTypesProvider.cs
- SafeEventLogWriteHandle.cs
- ComplexPropertyEntry.cs
- AssociationEndMember.cs
- MenuItemBinding.cs
- Enlistment.cs
- WebPartsPersonalizationAuthorization.cs
- DesignerMetadata.cs
- FindCriteria11.cs
- IPHostEntry.cs
- NoneExcludedImageIndexConverter.cs
- StyleXamlParser.cs
- ClockController.cs
- WindowsTooltip.cs
- PathSegmentCollection.cs
- ElapsedEventArgs.cs
- IssuerInformation.cs
- ShutDownListener.cs
- StringComparer.cs
- IChannel.cs
- FileUpload.cs
- SqlServer2KCompatibilityAnnotation.cs
- mda.cs
- StringPropertyBuilder.cs
- ContentFileHelper.cs
- SafeNativeMethods.cs
- StrongNameKeyPair.cs
- CustomAttributeSerializer.cs
- AutomationProperties.cs
- BuildProviderAppliesToAttribute.cs
- UIHelper.cs
- FontNamesConverter.cs
- PostBackOptions.cs
- ReceiveReply.cs
- SessionStateUtil.cs
- PaperSize.cs
- MimeTypePropertyAttribute.cs
- ContextMenuStripGroup.cs
- InheritanceService.cs
- VisualStates.cs
- Substitution.cs
- CountAggregationOperator.cs
- latinshape.cs
- Tuple.cs
- IIS7WorkerRequest.cs
- Region.cs
- PathGradientBrush.cs
- oledbmetadatacolumnnames.cs
- ConnectionConsumerAttribute.cs
- ResourceContainerWrapper.cs
- Camera.cs
- DataServiceResponse.cs
- WebPartCatalogAddVerb.cs
- AdCreatedEventArgs.cs
- Container.cs
- InProcStateClientManager.cs
- CompoundFileStorageReference.cs
- AppDomainFactory.cs
- OraclePermission.cs
- ServerValidateEventArgs.cs
- _IPv4Address.cs
- PaintValueEventArgs.cs
- BinaryWriter.cs
- EqualityComparer.cs
- OpenTypeCommon.cs
- ChameleonKey.cs
- StylusOverProperty.cs
- Scripts.cs
- ResourceExpression.cs
- FormViewDeletedEventArgs.cs
- TraceContextRecord.cs
- AsyncResult.cs
- AdRotator.cs
- CodeBinaryOperatorExpression.cs
- HostedAspNetEnvironment.cs
- ReferenceConverter.cs
- PassportAuthenticationModule.cs
- ParameterCollection.cs
- InfoCardBaseException.cs
- SnapshotChangeTrackingStrategy.cs
- ExpressionBinding.cs
- AdCreatedEventArgs.cs
- PropertyDescriptor.cs
- IPPacketInformation.cs
- FigureParagraph.cs
- MediaPlayerState.cs
- ServerValidateEventArgs.cs
- Utils.cs
- DynamicQueryStringParameter.cs
- Identifier.cs