Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthorizationDecisionClaimResource.cs / 1305376 / SamlAuthorizationDecisionClaimResource.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System; using System.Collections.Generic; using System.IdentityModel.Claims; using System.Runtime.Serialization; using System.Text; [DataContract] public class SamlAuthorizationDecisionClaimResource { [DataMember] string resource; [DataMember] SamlAccessDecision accessDecision; [DataMember] string actionNamespace; [DataMember] string actionName; [OnDeserialized] void OnDeserialized(StreamingContext ctx) { if (String.IsNullOrEmpty(resource)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); if (String.IsNullOrEmpty(actionName)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName"); } public SamlAuthorizationDecisionClaimResource(string resource, SamlAccessDecision accessDecision, string actionNamespace, string actionName) { if (String.IsNullOrEmpty(resource)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); if (String.IsNullOrEmpty(actionName)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName"); this.resource = resource; this.accessDecision = accessDecision; this.actionNamespace = actionNamespace; this.actionName = actionName; } public string Resource { get { return this.resource; } } public SamlAccessDecision AccessDecision { get { return this.accessDecision; } } public string ActionNamespace { get { return this.actionNamespace; } } public string ActionName { get { return this.actionName; } } public override bool Equals(object obj) { if (obj == null) return false; if (ReferenceEquals(this, obj)) return true; SamlAuthorizationDecisionClaimResource rhs = obj as SamlAuthorizationDecisionClaimResource; if (rhs == null) return false; return ((this.ActionName == rhs.ActionName) && (this.ActionNamespace == rhs.ActionNamespace) && (this.Resource == rhs.Resource) && (this.AccessDecision == rhs.AccessDecision)); } public override int GetHashCode() { return (this.resource.GetHashCode() ^ this.accessDecision.GetHashCode()); } } } // 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
- BaseInfoTable.cs
- FreeFormDesigner.cs
- ColorConverter.cs
- SocketPermission.cs
- ExtenderControl.cs
- Clipboard.cs
- RuntimeUtils.cs
- TextServicesCompartment.cs
- SqlUserDefinedAggregateAttribute.cs
- DashStyles.cs
- CodeAccessPermission.cs
- DataGridRowHeader.cs
- NavigationHelper.cs
- Variant.cs
- VisualProxy.cs
- BamlRecords.cs
- AsyncOperationManager.cs
- EntityDataSourceState.cs
- GridViewRowPresenter.cs
- HttpRequest.cs
- DrawingDrawingContext.cs
- SplitterPanel.cs
- IdentityReference.cs
- ConfigXmlAttribute.cs
- TableSectionStyle.cs
- MouseActionConverter.cs
- UnsignedPublishLicense.cs
- GenerateTemporaryTargetAssembly.cs
- AutomationIdentifierGuids.cs
- Transform3DGroup.cs
- DataBindingCollection.cs
- UIElementCollection.cs
- _NetRes.cs
- LinqExpressionNormalizer.cs
- Point3DCollectionValueSerializer.cs
- FileLogRecordHeader.cs
- SystemBrushes.cs
- GPRECT.cs
- BindingContext.cs
- BasePattern.cs
- DependencyObject.cs
- ProfileInfo.cs
- CollectionConverter.cs
- QualifiedCellIdBoolean.cs
- IImplicitResourceProvider.cs
- RegexCaptureCollection.cs
- LineVisual.cs
- ContentWrapperAttribute.cs
- InfiniteIntConverter.cs
- OleDbEnumerator.cs
- FixedPageStructure.cs
- BinaryWriter.cs
- Block.cs
- PointCollection.cs
- Column.cs
- PrivilegedConfigurationManager.cs
- FormsAuthenticationCredentials.cs
- Imaging.cs
- InternalSafeNativeMethods.cs
- XmlReaderSettings.cs
- DataTableCollection.cs
- SmiEventStream.cs
- InputLanguageCollection.cs
- SmiMetaData.cs
- CodeBinaryOperatorExpression.cs
- ListDictionaryInternal.cs
- URL.cs
- RelationshipWrapper.cs
- RIPEMD160.cs
- XmlSortKeyAccumulator.cs
- PerformanceCounterCategory.cs
- ObjectResult.cs
- BinaryObjectReader.cs
- PropertyCondition.cs
- FullTextState.cs
- HttpModuleActionCollection.cs
- SessionStateContainer.cs
- BulletChrome.cs
- Int32AnimationBase.cs
- SqlRetyper.cs
- EntityDataSourceChangedEventArgs.cs
- EdmValidator.cs
- Int32CollectionConverter.cs
- IntPtr.cs
- SymbolMethod.cs
- PreservationFileReader.cs
- DataBindEngine.cs
- PrivateFontCollection.cs
- ApplicationBuildProvider.cs
- NamespaceDisplay.xaml.cs
- DaylightTime.cs
- ContentElementAutomationPeer.cs
- WebPartConnectionsCloseVerb.cs
- OLEDB_Util.cs
- SizeAnimation.cs
- EtwTrackingParticipant.cs
- RenderDataDrawingContext.cs
- HwndSourceKeyboardInputSite.cs
- XmlSchemaAppInfo.cs
- CultureInfo.cs