Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / XamlIntegration / SpnEndpointIdentityExtension.cs / 1305376 / SpnEndpointIdentityExtension.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 = "Spn is an acronym")]
[MarkupExtensionReturnType(typeof(SpnEndpointIdentity))]
public class SpnEndpointIdentityExtension : MarkupExtension
{
public SpnEndpointIdentityExtension()
{
}
public SpnEndpointIdentityExtension(SpnEndpointIdentity identity)
{
if (identity == null)
{
throw FxTrace.Exception.ArgumentNull("identity");
}
Fx.Assert(identity.IdentityClaim.Resource is string, "SpnEndpointIdentity claim resource is not string");
this.SpnName = (string)identity.IdentityClaim.Resource;
}
[SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldBeSpelledCorrectly, Justification = "Spn is an acronym")]
public string SpnName
{
get;
set;
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
return new SpnEndpointIdentity(this.SpnName);
}
}
}
// 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
- SqlExpressionNullability.cs
- PeerApplication.cs
- SQLConvert.cs
- ComEventsHelper.cs
- WmlLiteralTextAdapter.cs
- ScaleTransform3D.cs
- NonVisualControlAttribute.cs
- CodeTypeOfExpression.cs
- PackWebRequest.cs
- ReferenceSchema.cs
- SettingsBase.cs
- XmlChildNodes.cs
- EncodingStreamWrapper.cs
- CreateBookmarkScope.cs
- Label.cs
- ItemCheckedEvent.cs
- EventPropertyMap.cs
- AstTree.cs
- RegexWorker.cs
- OraclePermission.cs
- SAPICategories.cs
- RemotingServices.cs
- ArraySortHelper.cs
- ImageButton.cs
- BitmapFrameDecode.cs
- ClientScriptManager.cs
- WpfGeneratedKnownTypes.cs
- ProcessHostConfigUtils.cs
- SelectionManager.cs
- BindingMemberInfo.cs
- CroppedBitmap.cs
- IsolatedStorageException.cs
- SHA1Managed.cs
- TabControl.cs
- CompressStream.cs
- RequestDescription.cs
- TemplatedMailWebEventProvider.cs
- GifBitmapDecoder.cs
- XPathDocument.cs
- ExcludeFromCodeCoverageAttribute.cs
- IERequestCache.cs
- QuaternionRotation3D.cs
- ReadOnlyAttribute.cs
- MasterPageParser.cs
- SchemaLookupTable.cs
- LingerOption.cs
- Graphics.cs
- ToolStripItemBehavior.cs
- nulltextcontainer.cs
- Point.cs
- DictionaryGlobals.cs
- PrintDialog.cs
- XmlBinaryReader.cs
- ForEachAction.cs
- XmlNamespaceManager.cs
- PersonalizationDictionary.cs
- NotifyCollectionChangedEventArgs.cs
- PrinterResolution.cs
- SID.cs
- Trustee.cs
- WebException.cs
- DeviceContext.cs
- webbrowsersite.cs
- WebPartTransformerCollection.cs
- Msec.cs
- DrawingBrush.cs
- NeedSkipTokenVisitor.cs
- PropertyMap.cs
- IsolatedStorage.cs
- DurableInstanceContextProvider.cs
- QilPatternVisitor.cs
- TimeManager.cs
- ResXFileRef.cs
- SecurityHeaderElementInferenceEngine.cs
- LineVisual.cs
- CommandEventArgs.cs
- ISAPIApplicationHost.cs
- TreeView.cs
- NameValueConfigurationCollection.cs
- ScrollPattern.cs
- _IPv4Address.cs
- DbTransaction.cs
- SmiContext.cs
- ResolveMatches11.cs
- SqlDataReader.cs
- mda.cs
- InvokePatternIdentifiers.cs
- OleDbInfoMessageEvent.cs
- TemplatedMailWebEventProvider.cs
- QueryStringParameter.cs
- listitem.cs
- PasswordTextContainer.cs
- DataSourceXmlClassAttribute.cs
- TableRow.cs
- ContextStack.cs
- HotSpotCollection.cs
- WebDescriptionAttribute.cs
- ApplicationInfo.cs
- MetadataArtifactLoaderCompositeFile.cs
- HotCommands.cs