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
- DataRecordInternal.cs
- RequestUriProcessor.cs
- StrongNamePublicKeyBlob.cs
- CollectionMarkupSerializer.cs
- IsolatedStorageFile.cs
- ScalarOps.cs
- XmlParserContext.cs
- CommandValueSerializer.cs
- PageSettings.cs
- CorrelationToken.cs
- controlskin.cs
- ExternalDataExchangeService.cs
- ResourceLoader.cs
- ReflectionServiceProvider.cs
- ProcessManager.cs
- EncoderReplacementFallback.cs
- ObservableDictionary.cs
- DesignerAutoFormatCollection.cs
- FocusWithinProperty.cs
- SHA384.cs
- EntityDataSourceReferenceGroup.cs
- xamlnodes.cs
- Brush.cs
- ClientConfigPaths.cs
- EntityContainerRelationshipSet.cs
- BackgroundFormatInfo.cs
- GeneralEndpointIdentity.cs
- EventLogTraceListener.cs
- User.cs
- CurrentTimeZone.cs
- CompatibleComparer.cs
- ObjectStateManager.cs
- BitmapDownload.cs
- PersianCalendar.cs
- StrokeNodeData.cs
- TrustSection.cs
- GridItemCollection.cs
- MemberDomainMap.cs
- CompositeScriptReferenceEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- UnsafeNativeMethods.cs
- ControlBuilder.cs
- BamlMapTable.cs
- FrugalMap.cs
- DataTable.cs
- GetWinFXPath.cs
- TextEditorCharacters.cs
- AnchoredBlock.cs
- HiddenFieldPageStatePersister.cs
- Parsers.cs
- PropertyGridEditorPart.cs
- StateValidator.cs
- ProfilePropertyNameValidator.cs
- RuntimeIdentifierPropertyAttribute.cs
- ApplicationSecurityManager.cs
- OverrideMode.cs
- CalendarDateRange.cs
- TypeDependencyAttribute.cs
- SqlUtil.cs
- QuerySelectOp.cs
- InheritanceAttribute.cs
- TableDetailsRow.cs
- ComboBoxHelper.cs
- OleDbParameterCollection.cs
- ScaleTransform3D.cs
- PassportAuthentication.cs
- CryptographicAttribute.cs
- BinaryReader.cs
- PassportAuthenticationModule.cs
- ByteKeyFrameCollection.cs
- WebPartVerbsEventArgs.cs
- Emitter.cs
- SqlFactory.cs
- SecurityCriticalDataForSet.cs
- RenamedEventArgs.cs
- XmlnsPrefixAttribute.cs
- TakeQueryOptionExpression.cs
- CatalogUtil.cs
- PerformanceCounterPermissionEntry.cs
- IndentedWriter.cs
- AmbiguousMatchException.cs
- EntityDataSource.cs
- TreeNodeConverter.cs
- NavigationEventArgs.cs
- EventMappingSettings.cs
- CatalogPartCollection.cs
- ListViewInsertionMark.cs
- MemoryRecordBuffer.cs
- ChangePassword.cs
- FixedHyperLink.cs
- CompiledRegexRunnerFactory.cs
- HitTestParameters3D.cs
- PrimitiveList.cs
- DiscoveryReference.cs
- PartialArray.cs
- InvalidCastException.cs
- OdbcConnectionFactory.cs
- GroupLabel.cs
- CertificateReferenceElement.cs
- DeflateStream.cs