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
- EdmTypeAttribute.cs
- CustomAssemblyResolver.cs
- SharingService.cs
- SeparatorAutomationPeer.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- EntityDataSourceMemberPath.cs
- CounterSample.cs
- IntSecurity.cs
- AffineTransform3D.cs
- SQLSingleStorage.cs
- PtsHelper.cs
- TextEditorCopyPaste.cs
- DnsEndpointIdentity.cs
- UnsafeNativeMethods.cs
- ApplicationTrust.cs
- X509CertificateClaimSet.cs
- RectAnimation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CodeMemberMethod.cs
- XPathQueryGenerator.cs
- LocationEnvironment.cs
- HttpProcessUtility.cs
- MimeMapping.cs
- NumberFormatter.cs
- Image.cs
- MimeXmlImporter.cs
- RuleRefElement.cs
- Speller.cs
- ImmutableCollection.cs
- SqlDataSourceSummaryPanel.cs
- TaskForm.cs
- EventLogPermissionAttribute.cs
- Authorization.cs
- FactoryGenerator.cs
- MultiSelector.cs
- Wildcard.cs
- ZipIOLocalFileHeader.cs
- VarRemapper.cs
- StickyNote.cs
- RandomDelaySendsAsyncResult.cs
- TabControlToolboxItem.cs
- BasePattern.cs
- HtmlTernaryTree.cs
- RootProfilePropertySettingsCollection.cs
- LazyLoadBehavior.cs
- WebBrowserNavigatedEventHandler.cs
- RtfToXamlLexer.cs
- MultipartContentParser.cs
- X509ChainElement.cs
- ChannelEndpointElementCollection.cs
- AutomationPattern.cs
- Model3DGroup.cs
- ReadWriteObjectLock.cs
- TablePattern.cs
- OdbcUtils.cs
- PersonalizationState.cs
- CancellationHandlerDesigner.cs
- MachinePropertyVariants.cs
- DataGridViewButtonCell.cs
- Rect3DValueSerializer.cs
- ReplyChannelAcceptor.cs
- CqlParser.cs
- XmlTypeMapping.cs
- AsymmetricAlgorithm.cs
- HtmlInputControl.cs
- SynchronizationLockException.cs
- Variable.cs
- PackageFilter.cs
- _KerberosClient.cs
- RuntimeCompatibilityAttribute.cs
- CompositeScriptReference.cs
- GifBitmapDecoder.cs
- RevocationPoint.cs
- TableAutomationPeer.cs
- EditorBrowsableAttribute.cs
- SignHashRequest.cs
- WsatConfiguration.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WebPartManager.cs
- TdsParserSessionPool.cs
- TextServicesHost.cs
- InputLanguageSource.cs
- SoapSchemaExporter.cs
- WsdlExporter.cs
- ExpressionBuilder.cs
- SchemaAttDef.cs
- ContextMenu.cs
- RoleManagerModule.cs
- HtmlTable.cs
- TextContainerChangedEventArgs.cs
- SmtpException.cs
- InvalidDataContractException.cs
- DefaultValueConverter.cs
- ComplexTypeEmitter.cs
- ShaderRenderModeValidation.cs
- SqlServer2KCompatibilityCheck.cs
- FontStretch.cs
- FilteredSchemaElementLookUpTable.cs
- PagerSettings.cs
- CommandLineParser.cs