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
- SourceChangedEventArgs.cs
- RegexWorker.cs
- KeyTime.cs
- BitmapEffectGeneralTransform.cs
- ConfigurationSettings.cs
- SoapSchemaExporter.cs
- XmlMessageFormatter.cs
- OleDbMetaDataFactory.cs
- InfoCardTrace.cs
- XmlEncodedRawTextWriter.cs
- EnvelopedPkcs7.cs
- TraceContextRecord.cs
- ErrorStyle.cs
- SequentialOutput.cs
- SapiAttributeParser.cs
- ToolStripGrip.cs
- DataGridViewCellStyle.cs
- PathFigureCollectionConverter.cs
- SplineKeyFrames.cs
- Literal.cs
- RootProjectionNode.cs
- IItemContainerGenerator.cs
- CalendarDayButton.cs
- WindowExtensionMethods.cs
- BindingManagerDataErrorEventArgs.cs
- SpellerStatusTable.cs
- FactoryGenerator.cs
- XmlSchemaExternal.cs
- ChannelDemuxer.cs
- RequestStatusBarUpdateEventArgs.cs
- IpcServerChannel.cs
- Material.cs
- RetrieveVirtualItemEventArgs.cs
- ColorDialog.cs
- CheckBoxBaseAdapter.cs
- InvalidFilterCriteriaException.cs
- CompositeFontFamily.cs
- ColorConverter.cs
- Currency.cs
- ProxyGenerationError.cs
- TranslateTransform3D.cs
- ListChangedEventArgs.cs
- XPathSingletonIterator.cs
- ReadOnlyHierarchicalDataSource.cs
- _Win32.cs
- GroupBoxRenderer.cs
- PassportAuthenticationModule.cs
- JsonCollectionDataContract.cs
- TrackingStringDictionary.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SrgsToken.cs
- ContourSegment.cs
- BitmapEffectDrawingContextState.cs
- CodeAttachEventStatement.cs
- UnionCodeGroup.cs
- ItemCollection.cs
- ToolZone.cs
- OptimizerPatterns.cs
- EngineSite.cs
- SmiMetaDataProperty.cs
- SchemaImporter.cs
- XPathPatternBuilder.cs
- Single.cs
- IdentityValidationException.cs
- GridItemPatternIdentifiers.cs
- FormViewUpdatedEventArgs.cs
- LayoutEvent.cs
- SecurityRuntime.cs
- MenuItem.cs
- Error.cs
- SortedList.cs
- ErrorFormatterPage.cs
- DesignerToolStripControlHost.cs
- Model3DCollection.cs
- StringOutput.cs
- GCHandleCookieTable.cs
- BaseResourcesBuildProvider.cs
- SharedStatics.cs
- CopyOfAction.cs
- TreeNodeBinding.cs
- ProgressChangedEventArgs.cs
- UncommonField.cs
- DataGridRowAutomationPeer.cs
- DtcInterfaces.cs
- PageFunction.cs
- DisplayInformation.cs
- XmlEntityReference.cs
- XmlBindingWorker.cs
- Matrix3DStack.cs
- FloaterBaseParagraph.cs
- PipelineModuleStepContainer.cs
- Crypto.cs
- EmptyControlCollection.cs
- XsltConvert.cs
- PersonalizablePropertyEntry.cs
- FreezableDefaultValueFactory.cs
- FixedSOMPageConstructor.cs
- CodeStatement.cs
- EventMemberCodeDomSerializer.cs
- AutomationPatternInfo.cs