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
- SamlSerializer.cs
- bidPrivateBase.cs
- SafeIUnknown.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Internal.cs
- TimelineGroup.cs
- ErrorFormatterPage.cs
- XmlSchemaCollection.cs
- ExpressionBindingCollection.cs
- FormViewUpdatedEventArgs.cs
- UriGenerator.cs
- SynchronousReceiveBehavior.cs
- Padding.cs
- Stackframe.cs
- xamlnodes.cs
- NullableIntSumAggregationOperator.cs
- VSWCFServiceContractGenerator.cs
- PropertyEmitterBase.cs
- PaperSource.cs
- TextServicesCompartment.cs
- OutOfMemoryException.cs
- XmlWellformedWriter.cs
- AssemblyBuilderData.cs
- XmlStringTable.cs
- DeploymentSection.cs
- TypeDescriptor.cs
- ReachIDocumentPaginatorSerializer.cs
- IisTraceWebEventProvider.cs
- CheckBoxBaseAdapter.cs
- ImpersonateTokenRef.cs
- MetadataItem.cs
- documentsequencetextpointer.cs
- RestHandler.cs
- XmlTextAttribute.cs
- TranslateTransform.cs
- ComponentChangingEvent.cs
- FullTextState.cs
- ButtonBase.cs
- ErrorHandler.cs
- ListViewItemMouseHoverEvent.cs
- ResXResourceSet.cs
- EventDescriptorCollection.cs
- LocalizationCodeDomSerializer.cs
- ExtendedPropertiesHandler.cs
- DataControlField.cs
- GridViewCellAutomationPeer.cs
- ArrangedElementCollection.cs
- SqlParameterizer.cs
- SiteMapPath.cs
- AnnotationHelper.cs
- VectorCollectionValueSerializer.cs
- DesignerHierarchicalDataSourceView.cs
- httpstaticobjectscollection.cs
- InlineCategoriesDocument.cs
- AppSecurityManager.cs
- Qualifier.cs
- Context.cs
- MeasureData.cs
- FormViewUpdatedEventArgs.cs
- ASCIIEncoding.cs
- DataViewManagerListItemTypeDescriptor.cs
- TileBrush.cs
- Translator.cs
- EditorZone.cs
- DependencyProperty.cs
- Itemizer.cs
- recordstate.cs
- ExpressionBuilder.cs
- SecurityContext.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CounterSampleCalculator.cs
- CanonicalFontFamilyReference.cs
- UserNamePasswordClientCredential.cs
- FileVersionInfo.cs
- NavigationHelper.cs
- OutputCacheProfileCollection.cs
- XPathAxisIterator.cs
- SafeBitVector32.cs
- AppSettingsExpressionBuilder.cs
- SqlClientFactory.cs
- ImplicitInputBrush.cs
- CopyOfAction.cs
- ProjectionCamera.cs
- XPathNodeInfoAtom.cs
- CreateUserErrorEventArgs.cs
- StaticExtension.cs
- ArithmeticException.cs
- PeerToPeerException.cs
- InfiniteTimeSpanConverter.cs
- CancellationHandler.cs
- FamilyTypefaceCollection.cs
- TimeStampChecker.cs
- ReferenceEqualityComparer.cs
- XmlDataCollection.cs
- Pool.cs
- AnnotationDocumentPaginator.cs
- Attributes.cs
- WebRequestModuleElement.cs
- InstalledFontCollection.cs
- ConditionCollection.cs