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
- DeviceOverridableAttribute.cs
- RestHandler.cs
- TextCollapsingProperties.cs
- RequestSecurityTokenSerializer.cs
- WebControlsSection.cs
- WindowsListViewGroup.cs
- MTConfigUtil.cs
- TemplateParser.cs
- DataObjectFieldAttribute.cs
- RoleServiceManager.cs
- MsmqElementBase.cs
- BuildProviderUtils.cs
- BaseCAMarshaler.cs
- EventDescriptorCollection.cs
- LightweightCodeGenerator.cs
- DecimalConstantAttribute.cs
- ArglessEventHandlerProxy.cs
- MessageBuffer.cs
- DataBoundControlHelper.cs
- BindingWorker.cs
- SafeFindHandle.cs
- CommandCollectionEditor.cs
- TableProviderWrapper.cs
- VSWCFServiceContractGenerator.cs
- ZipIORawDataFileBlock.cs
- Wizard.cs
- Mutex.cs
- FacetChecker.cs
- PrintDialog.cs
- ControlTemplate.cs
- SerializationFieldInfo.cs
- List.cs
- parserscommon.cs
- DataBoundControlAdapter.cs
- wmiprovider.cs
- CoTaskMemUnicodeSafeHandle.cs
- Lasso.cs
- Function.cs
- XXXInfos.cs
- Double.cs
- ExceptionHandlerDesigner.cs
- Calendar.cs
- HtmlHead.cs
- FacetEnabledSchemaElement.cs
- X509WindowsSecurityToken.cs
- StopStoryboard.cs
- SolidColorBrush.cs
- BorderGapMaskConverter.cs
- EmbeddedMailObject.cs
- WithParamAction.cs
- WebPartsSection.cs
- Command.cs
- FactoryRecord.cs
- IsolatedStorageFile.cs
- CommentEmitter.cs
- DataBoundControl.cs
- BaseParagraph.cs
- PagerSettings.cs
- DiffuseMaterial.cs
- CollectionViewSource.cs
- HtmlInputImage.cs
- WebPartCancelEventArgs.cs
- JumpPath.cs
- WsatProxy.cs
- DynamicDocumentPaginator.cs
- FontStyle.cs
- VirtualizingStackPanel.cs
- InteropExecutor.cs
- WebBrowserNavigatingEventHandler.cs
- Pair.cs
- FileSystemWatcher.cs
- PointAnimationClockResource.cs
- datacache.cs
- KeyEvent.cs
- XmlArrayItemAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- PageCatalogPart.cs
- CodeDefaultValueExpression.cs
- SubstitutionList.cs
- ToolStripCollectionEditor.cs
- OracleNumber.cs
- ViewKeyConstraint.cs
- PlacementWorkspace.cs
- DbParameterCollectionHelper.cs
- BamlTreeUpdater.cs
- HttpModuleActionCollection.cs
- TreeNodeCollectionEditorDialog.cs
- Transaction.cs
- serverconfig.cs
- TTSVoice.cs
- Size.cs
- ToolStripPanelCell.cs
- CustomErrorsSection.cs
- CompensatableTransactionScopeActivityDesigner.cs
- UnSafeCharBuffer.cs
- DataTableNewRowEvent.cs
- DataServiceQueryProvider.cs
- TabControlEvent.cs
- ChangeBlockUndoRecord.cs
- BitmapSource.cs