Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / XamlIntegration / UpnEndpointIdentityExtension.cs / 1305376 / UpnEndpointIdentityExtension.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.XamlIntegration { using System; using System.Diagnostics.CodeAnalysis; using System.Runtime; using System.Windows.Markup; using System.ServiceModel.Activities; [SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldBeSpelledCorrectly, Justification = "Upn is an acronym")] [MarkupExtensionReturnType(typeof(UpnEndpointIdentity))] public class UpnEndpointIdentityExtension : MarkupExtension { public UpnEndpointIdentityExtension() { } public UpnEndpointIdentityExtension(UpnEndpointIdentity identity) { if (identity == null) { throw FxTrace.Exception.ArgumentNull("identity"); } Fx.Assert(identity.IdentityClaim.Resource is string, "UpnEndpointIdentity claim resource is not string"); this.UpnName = (string)identity.IdentityClaim.Resource; } [SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldBeSpelledCorrectly, Justification = "Upn is an acronym")] public string UpnName { get; set; } public override object ProvideValue(IServiceProvider serviceProvider) { return new UpnEndpointIdentity(this.UpnName); } } } // 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
- XPathNavigatorReader.cs
- NumberFormatter.cs
- TextServicesPropertyRanges.cs
- WebPartsSection.cs
- validation.cs
- TCPClient.cs
- XPathException.cs
- AnnotationDocumentPaginator.cs
- SkewTransform.cs
- HostSecurityManager.cs
- SoapFault.cs
- InstanceOwner.cs
- SmtpLoginAuthenticationModule.cs
- DataGridBoolColumn.cs
- InputLangChangeRequestEvent.cs
- InvariantComparer.cs
- ParserOptions.cs
- JsonSerializer.cs
- Transform3D.cs
- DataSet.cs
- ReferenceService.cs
- Timer.cs
- SemanticAnalyzer.cs
- ComboBoxDesigner.cs
- XmlException.cs
- XamlReader.cs
- LineProperties.cs
- MDIClient.cs
- ByteAnimation.cs
- RangeValuePatternIdentifiers.cs
- RelationshipDetailsCollection.cs
- TimeSpanOrInfiniteConverter.cs
- SqlTypeConverter.cs
- WebConfigManager.cs
- CharacterHit.cs
- PolygonHotSpot.cs
- WindowsListViewItem.cs
- StructuredTypeEmitter.cs
- PixelShader.cs
- SafeCoTaskMem.cs
- BinaryObjectWriter.cs
- EventLogPermissionAttribute.cs
- PagesSection.cs
- ShaderRenderModeValidation.cs
- SrgsNameValueTag.cs
- WebBrowserNavigatingEventHandler.cs
- Brush.cs
- FacetValueContainer.cs
- FtpCachePolicyElement.cs
- ContentElementCollection.cs
- HandleExceptionArgs.cs
- HttpBufferlessInputStream.cs
- VirtualPath.cs
- WorkflowDefinitionDispenser.cs
- AppSettingsSection.cs
- ParameterBuilder.cs
- ContentType.cs
- NTAccount.cs
- LightweightCodeGenerator.cs
- PassportAuthentication.cs
- Rotation3DAnimation.cs
- ComponentDesigner.cs
- QilScopedVisitor.cs
- ReadOnlyPermissionSet.cs
- GlyphRun.cs
- ServiceThrottlingBehavior.cs
- KeyNotFoundException.cs
- DEREncoding.cs
- isolationinterop.cs
- VisualStyleTypesAndProperties.cs
- webproxy.cs
- MethodAccessException.cs
- DocumentOrderComparer.cs
- ValidationEventArgs.cs
- CalendarDayButton.cs
- BlobPersonalizationState.cs
- ObjectTypeMapping.cs
- PolyBezierSegment.cs
- WebPartVerbsEventArgs.cs
- IsolatedStorageFilePermission.cs
- PolicyReader.cs
- RecordsAffectedEventArgs.cs
- NavigateEvent.cs
- ISAPIApplicationHost.cs
- CommandLineParser.cs
- XmlNodeList.cs
- MemberPath.cs
- PerformanceCounterManager.cs
- UInt16Converter.cs
- Timer.cs
- XmlSchemaAnyAttribute.cs
- RegexMatch.cs
- StorageEndPropertyMapping.cs
- RoleBoolean.cs
- DataRowExtensions.cs
- XmlAttributeCache.cs
- ObjectListItemCollection.cs
- XamlTypeMapper.cs
- DependencyObject.cs
- XmlException.cs