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
- TextHintingModeValidation.cs
- CodeTypeReferenceExpression.cs
- LineGeometry.cs
- SpecialNameAttribute.cs
- CharacterMetricsDictionary.cs
- DockAndAnchorLayout.cs
- DataControlFieldCell.cs
- CfgParser.cs
- ObjectCacheHost.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DynamicPropertyReader.cs
- InstancePersistenceContext.cs
- DispatcherObject.cs
- DesignerInterfaces.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- FeatureManager.cs
- AxisAngleRotation3D.cs
- XMLSchema.cs
- _ShellExpression.cs
- ping.cs
- MultiDataTrigger.cs
- TreeNodeStyle.cs
- DriveInfo.cs
- MemberBinding.cs
- SByteConverter.cs
- DataRowCollection.cs
- ConnectionConsumerAttribute.cs
- JsonReader.cs
- HtmlElementEventArgs.cs
- FontSource.cs
- XomlSerializationHelpers.cs
- EncoderExceptionFallback.cs
- TransportContext.cs
- ApplyHostConfigurationBehavior.cs
- LinqDataSourceEditData.cs
- TimersDescriptionAttribute.cs
- CorrelationResolver.cs
- SapiGrammar.cs
- DocumentGrid.cs
- EncryptedPackage.cs
- TypeToken.cs
- Accessible.cs
- xsdvalidator.cs
- MainMenu.cs
- FixedPageAutomationPeer.cs
- MenuItem.cs
- ServiceBusyException.cs
- XmlTextWriter.cs
- AnimatedTypeHelpers.cs
- InnerItemCollectionView.cs
- SqlDataSourceEnumerator.cs
- ReadOnlyCollection.cs
- ThreadAttributes.cs
- TrackingMemoryStream.cs
- PerformanceCountersElement.cs
- HealthMonitoringSectionHelper.cs
- ExpressionBindingCollection.cs
- OleDbConnectionFactory.cs
- SimpleHandlerBuildProvider.cs
- ActivityTypeDesigner.xaml.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WmlLinkAdapter.cs
- _FtpDataStream.cs
- XamlPoint3DCollectionSerializer.cs
- DebugView.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- NamespaceMapping.cs
- GZipDecoder.cs
- PersonalizationProviderHelper.cs
- UidManager.cs
- RawStylusInputCustomData.cs
- StaticExtension.cs
- RelatedView.cs
- Trace.cs
- DynamicDocumentPaginator.cs
- StreamAsIStream.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Propagator.ExtentPlaceholderCreator.cs
- DropShadowEffect.cs
- XmlSerializationGeneratedCode.cs
- NameValueCollection.cs
- Point.cs
- ComplexObject.cs
- SafeHandles.cs
- MutexSecurity.cs
- FormsAuthenticationEventArgs.cs
- SoapExtensionImporter.cs
- ListItemCollection.cs
- SmiRequestExecutor.cs
- Module.cs
- MailWebEventProvider.cs
- DependencyObjectType.cs
- ParagraphResult.cs
- RegexInterpreter.cs
- GrabHandleGlyph.cs
- HttpApplicationFactory.cs
- MultiPageTextView.cs
- Scalars.cs
- DateTimeOffset.cs
- Dynamic.cs