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
- PagerSettings.cs
- SqlTransaction.cs
- AndMessageFilter.cs
- SizeChangedEventArgs.cs
- SqlInternalConnectionSmi.cs
- HtmlGenericControl.cs
- Menu.cs
- TypeConverterHelper.cs
- PropertyTabAttribute.cs
- OraclePermissionAttribute.cs
- _SingleItemRequestCache.cs
- SignedXml.cs
- InvalidAsynchronousStateException.cs
- CodeGenerationManager.cs
- InputLangChangeRequestEvent.cs
- CodeTypeParameterCollection.cs
- InkCollectionBehavior.cs
- XmlCharCheckingReader.cs
- SimpleApplicationHost.cs
- InternalCompensate.cs
- coordinatorfactory.cs
- NameScope.cs
- ObjectViewEntityCollectionData.cs
- XmlSchemaInferenceException.cs
- MenuItemAutomationPeer.cs
- AbandonedMutexException.cs
- SafeCryptContextHandle.cs
- StateWorkerRequest.cs
- AddingNewEventArgs.cs
- AnimationTimeline.cs
- WebSysDisplayNameAttribute.cs
- SerializationException.cs
- TextEditorCharacters.cs
- ToolStripOverflowButton.cs
- PixelShader.cs
- NamespaceInfo.cs
- ToolTip.cs
- OdbcReferenceCollection.cs
- ActivityMarkupSerializer.cs
- ImmComposition.cs
- SrgsRule.cs
- PhonemeConverter.cs
- StringFunctions.cs
- DataGridViewCellPaintingEventArgs.cs
- SoapAttributeOverrides.cs
- EventLogSession.cs
- UnescapedXmlDiagnosticData.cs
- InkPresenter.cs
- TdsParserStaticMethods.cs
- DbConnectionStringBuilder.cs
- XmlWrappingWriter.cs
- BaseTreeIterator.cs
- BitmapVisualManager.cs
- CompModHelpers.cs
- ProxyWebPartConnectionCollection.cs
- TdsEnums.cs
- RuleSettings.cs
- UnaryNode.cs
- PasswordPropertyTextAttribute.cs
- AtlasWeb.Designer.cs
- RoleManagerModule.cs
- PeerNameResolver.cs
- Binding.cs
- TextRangeAdaptor.cs
- SelectedCellsCollection.cs
- ColumnProvider.cs
- WebBrowserPermission.cs
- ReferencedCollectionType.cs
- DSASignatureFormatter.cs
- CompositeControl.cs
- DynamicILGenerator.cs
- PropertyRef.cs
- ExpressionVisitor.cs
- XmlSortKey.cs
- ValueUtilsSmi.cs
- AddInContractAttribute.cs
- ResourceType.cs
- EmptyEnumerable.cs
- WebPartDescriptionCollection.cs
- Rotation3DKeyFrameCollection.cs
- ScrollProperties.cs
- DeadCharTextComposition.cs
- ContainerUIElement3D.cs
- DetailsViewDeletedEventArgs.cs
- _HelperAsyncResults.cs
- BitConverter.cs
- EditingScopeUndoUnit.cs
- COMException.cs
- StandardOleMarshalObject.cs
- EncodingNLS.cs
- SwitchAttribute.cs
- TrackBar.cs
- EdmProviderManifest.cs
- DropShadowEffect.cs
- PersistChildrenAttribute.cs
- HttpHandlersSection.cs
- EntityTransaction.cs
- LinkLabel.cs
- RuntimeWrappedException.cs
- DetailsViewModeEventArgs.cs