Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Policy / DefaultEvaluationContext.cs / 1305376 / DefaultEvaluationContext.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Policy { using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IdentityModel.Claims; class DefaultEvaluationContext : EvaluationContext { ListclaimSets; Dictionary properties; DateTime expirationTime = SecurityUtils.MaxUtcDateTime; int generation; ReadOnlyCollection readOnlyClaimSets; public DefaultEvaluationContext() { this.properties = new Dictionary (); this.generation = 0; } public override int Generation { get { return this.generation; } } public override ReadOnlyCollection ClaimSets { get { if (this.claimSets == null) return EmptyReadOnlyCollection .Instance; if (this.readOnlyClaimSets == null) this.readOnlyClaimSets = new ReadOnlyCollection (this.claimSets); return this.readOnlyClaimSets; } } public override IDictionary Properties { get { return this.properties; } } public DateTime ExpirationTime { get { return this.expirationTime; } } public override void AddClaimSet(IAuthorizationPolicy policy, ClaimSet claimSet) { if (claimSet == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimSet"); if (this.claimSets == null) this.claimSets = new List (); this.claimSets.Add(claimSet); ++this.generation; } public override void RecordExpirationTime(DateTime expirationTime) { if (this.expirationTime > expirationTime) this.expirationTime = expirationTime; } } } // 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
- TextTreePropertyUndoUnit.cs
- ValidationError.cs
- EventLogWatcher.cs
- GrammarBuilderPhrase.cs
- XsltLoader.cs
- TextTreeUndo.cs
- WeakRefEnumerator.cs
- PathGeometry.cs
- ArraySegment.cs
- DBConnection.cs
- ExceptionRoutedEventArgs.cs
- PropertyGeneratedEventArgs.cs
- WebInvokeAttribute.cs
- ReadWriteObjectLock.cs
- TextEncodedRawTextWriter.cs
- LabelAutomationPeer.cs
- FamilyMapCollection.cs
- DetailsViewDeletedEventArgs.cs
- VectorAnimationUsingKeyFrames.cs
- SmiMetaData.cs
- RulePatternOps.cs
- NameValueSectionHandler.cs
- FactoryId.cs
- CompareValidator.cs
- HttpHandlersSection.cs
- SelectionHighlightInfo.cs
- CodeTypeParameter.cs
- InputScope.cs
- StatusStrip.cs
- QilParameter.cs
- MergeLocalizationDirectives.cs
- XamlVector3DCollectionSerializer.cs
- HtmlFormWrapper.cs
- StringConcat.cs
- XmlDataSourceNodeDescriptor.cs
- MasterPageParser.cs
- LinkArea.cs
- RuleSetDialog.Designer.cs
- DocumentViewerBaseAutomationPeer.cs
- ConfigXmlCDataSection.cs
- FilterableAttribute.cs
- TreeViewHitTestInfo.cs
- IFormattable.cs
- QilChoice.cs
- Scene3D.cs
- SQLInt32.cs
- TriggerBase.cs
- UserInitiatedNavigationPermission.cs
- ContextMenuService.cs
- hresults.cs
- ItemContainerPattern.cs
- FormViewRow.cs
- FullTrustAssembliesSection.cs
- TextureBrush.cs
- XPathNavigatorException.cs
- XamlSerializerUtil.cs
- FileNotFoundException.cs
- SynchronizedDispatch.cs
- MatrixAnimationBase.cs
- EventMappingSettingsCollection.cs
- DataBindingValueUIHandler.cs
- DataGridHyperlinkColumn.cs
- DataRecordInfo.cs
- SmiRecordBuffer.cs
- ToolbarAUtomationPeer.cs
- SelectionList.cs
- OneOf.cs
- BuilderPropertyEntry.cs
- HyperLink.cs
- AdPostCacheSubstitution.cs
- ItemAutomationPeer.cs
- GroupBoxAutomationPeer.cs
- RefType.cs
- ObjectStateEntry.cs
- BindableAttribute.cs
- AuthStoreRoleProvider.cs
- ObjectRef.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DataTableClearEvent.cs
- StatusBarItemAutomationPeer.cs
- ProcessThread.cs
- GetReadStreamResult.cs
- TableRow.cs
- ToolStripDropDownClosedEventArgs.cs
- DesignColumnCollection.cs
- ArraySegment.cs
- ActivityExecutionFilter.cs
- DocumentOrderQuery.cs
- SystemIPv4InterfaceProperties.cs
- dataobject.cs
- PropertyTabChangedEvent.cs
- ForwardPositionQuery.cs
- Evidence.cs
- Italic.cs
- GradientBrush.cs
- SystemIPGlobalStatistics.cs
- SerialStream.cs
- SessionStateModule.cs
- ListBox.cs
- RadioButton.cs