Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthorizationDecisionClaimResource.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SerializeAbsoluteContext.cs
- TransformerInfoCollection.cs
- XmlNamedNodeMap.cs
- XPathEmptyIterator.cs
- ScalarRestriction.cs
- NativeRecognizer.cs
- RootProfilePropertySettingsCollection.cs
- Timer.cs
- Point3DCollectionConverter.cs
- DataPagerFieldCommandEventArgs.cs
- WindowsAuthenticationModule.cs
- ClockController.cs
- FontStretches.cs
- ActivityDesignerLayoutSerializers.cs
- AuthenticateEventArgs.cs
- EventDescriptor.cs
- Oid.cs
- HttpPostedFile.cs
- IPipelineRuntime.cs
- FolderBrowserDialog.cs
- ProfileSection.cs
- CodeIndexerExpression.cs
- TabletDeviceInfo.cs
- DataObjectSettingDataEventArgs.cs
- ProviderCommandInfoUtils.cs
- ResourceCodeDomSerializer.cs
- Matrix3D.cs
- ToolBarTray.cs
- HashCodeCombiner.cs
- DPCustomTypeDescriptor.cs
- HttpWebResponse.cs
- CopyOfAction.cs
- DictationGrammar.cs
- GroupStyle.cs
- QilStrConcat.cs
- DataGridDesigner.cs
- CurrentChangedEventManager.cs
- XsltCompileContext.cs
- OrderedEnumerableRowCollection.cs
- SystemTcpStatistics.cs
- SamlAttribute.cs
- EventMap.cs
- PageHandlerFactory.cs
- Rectangle.cs
- BevelBitmapEffect.cs
- DbBuffer.cs
- ProviderSettings.cs
- LicenseException.cs
- DataSourceCacheDurationConverter.cs
- ReadOnlyPropertyMetadata.cs
- ResourceReferenceKeyNotFoundException.cs
- LineServices.cs
- SurrogateDataContract.cs
- RC2.cs
- SqlSelectStatement.cs
- SqlInternalConnectionSmi.cs
- CharUnicodeInfo.cs
- SR.cs
- Expression.cs
- SchemaDeclBase.cs
- GatewayDefinition.cs
- ResetableIterator.cs
- ToolStripOverflow.cs
- GestureRecognizer.cs
- TransactionInformation.cs
- TableLayoutCellPaintEventArgs.cs
- OleDbPermission.cs
- ConditionedDesigner.cs
- XmlAnyElementAttributes.cs
- HttpAsyncResult.cs
- SEHException.cs
- XmlSchemaElement.cs
- StrokeSerializer.cs
- TargetInvocationException.cs
- QueueProcessor.cs
- XmlCharType.cs
- ObjectStateEntryDbDataRecord.cs
- ConfigXmlAttribute.cs
- MenuItemStyleCollection.cs
- StateDesigner.Layouts.cs
- FileFormatException.cs
- OdbcInfoMessageEvent.cs
- TraceUtility.cs
- IdnElement.cs
- SiteMapNodeItem.cs
- RegistrationServices.cs
- EdmType.cs
- SizeKeyFrameCollection.cs
- ProxyAttribute.cs
- EndpointDispatcher.cs
- ScopedMessagePartSpecification.cs
- ClientUrlResolverWrapper.cs
- GCHandleCookieTable.cs
- EditorZoneAutoFormat.cs
- XmlNodeList.cs
- MenuItem.cs
- WSTrustFeb2005.cs
- CanExecuteRoutedEventArgs.cs
- ObjectStateManager.cs
- DiffuseMaterial.cs