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
- Converter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SoapCodeExporter.cs
- Canvas.cs
- ButtonField.cs
- LineInfo.cs
- SharedPerformanceCounter.cs
- WebPartZoneBase.cs
- EncryptedReference.cs
- GridViewDeletedEventArgs.cs
- Validator.cs
- TreeNodeBinding.cs
- HttpResponseBase.cs
- EnumBuilder.cs
- BatchServiceHost.cs
- RC2CryptoServiceProvider.cs
- TextStore.cs
- Automation.cs
- DocumentOrderQuery.cs
- DataKey.cs
- RotateTransform.cs
- StatusBar.cs
- WmfPlaceableFileHeader.cs
- SafePEFileHandle.cs
- SortAction.cs
- DesignerTransactionCloseEvent.cs
- PropertyGridEditorPart.cs
- IntegrationExceptionEventArgs.cs
- Listener.cs
- KeyPressEvent.cs
- SafeHandles.cs
- HotCommands.cs
- DesignBindingEditor.cs
- XmlSchemaAll.cs
- ContentType.cs
- Int32RectConverter.cs
- DBSchemaTable.cs
- XamlParser.cs
- ProtocolsConfiguration.cs
- RuleCache.cs
- ChannelFactoryBase.cs
- DiagnosticTraceRecords.cs
- DataGridViewCellFormattingEventArgs.cs
- milrender.cs
- EncoderParameter.cs
- Menu.cs
- FileDialog.cs
- ContextProperty.cs
- IERequestCache.cs
- ChtmlTextWriter.cs
- XNodeValidator.cs
- EdmRelationshipRoleAttribute.cs
- FilteredAttributeCollection.cs
- CompiledQuery.cs
- HwndSource.cs
- DesignerVerb.cs
- ExpressionVisitorHelpers.cs
- JsonCollectionDataContract.cs
- CompareValidator.cs
- PatternMatcher.cs
- XmlCodeExporter.cs
- AutomationElementCollection.cs
- ListManagerBindingsCollection.cs
- GridToolTip.cs
- ResourceReferenceKeyNotFoundException.cs
- ColumnResizeUndoUnit.cs
- MemberDescriptor.cs
- FixedTextPointer.cs
- GZipStream.cs
- ExtensibleClassFactory.cs
- BrowserCapabilitiesFactory.cs
- OutOfMemoryException.cs
- NetworkInformationException.cs
- Quad.cs
- X509Certificate.cs
- ScriptResourceMapping.cs
- DataTemplateKey.cs
- TableParaClient.cs
- SchemaType.cs
- MasterPageParser.cs
- DbConnectionInternal.cs
- XmlAttributes.cs
- ListControl.cs
- SqlGenericUtil.cs
- FilterException.cs
- BehaviorEditorPart.cs
- XmlSchemaObject.cs
- ParallelTimeline.cs
- CodeDomLocalizationProvider.cs
- AsyncStreamReader.cs
- OdbcStatementHandle.cs
- XmlSchemaChoice.cs
- ObjectToken.cs
- SelectionProviderWrapper.cs
- SupportsEventValidationAttribute.cs
- TemplateColumn.cs
- StatusBar.cs
- DoubleLink.cs
- Sorting.cs
- RuntimeResourceSet.cs