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
- LogicalExpr.cs
- ArraySegment.cs
- OutputCacheSettings.cs
- ColorTransformHelper.cs
- BaseDataListDesigner.cs
- CodeTypeDeclaration.cs
- FileSecurity.cs
- InternalConfigHost.cs
- CommandDevice.cs
- WindowsTreeView.cs
- ValueExpressions.cs
- UiaCoreApi.cs
- DbProviderFactoriesConfigurationHandler.cs
- CardSpaceSelector.cs
- FormViewUpdatedEventArgs.cs
- AssemblyAttributes.cs
- SerializationInfo.cs
- DataBoundControlDesigner.cs
- Help.cs
- ActivityExecutionContextCollection.cs
- ComboBoxItem.cs
- SqlDataSourceCustomCommandEditor.cs
- DesignerDataView.cs
- Int32CAMarshaler.cs
- PartialList.cs
- DetailsViewPagerRow.cs
- SqlGatherConsumedAliases.cs
- _NestedMultipleAsyncResult.cs
- DelegateArgument.cs
- ProcessStartInfo.cs
- LockRecursionException.cs
- RouteValueDictionary.cs
- System.Data_BID.cs
- _BasicClient.cs
- SmtpNtlmAuthenticationModule.cs
- SelectionPattern.cs
- SplitterCancelEvent.cs
- RepeaterItemCollection.cs
- ClientRolePrincipal.cs
- ConsumerConnectionPointCollection.cs
- Odbc32.cs
- ViewManager.cs
- DataListItem.cs
- InstanceCreationEditor.cs
- TypeUtils.cs
- SelectionChangedEventArgs.cs
- ClientSideProviderDescription.cs
- Application.cs
- ListViewContainer.cs
- DataServices.cs
- DynamicDataResources.Designer.cs
- PieceNameHelper.cs
- Subset.cs
- WeakReferenceList.cs
- AdRotator.cs
- WpfXamlType.cs
- PackagePart.cs
- EntityUtil.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DependencySource.cs
- ShaderRenderModeValidation.cs
- XmlSignificantWhitespace.cs
- IdentifierCollection.cs
- FixedPageProcessor.cs
- DataTablePropertyDescriptor.cs
- MenuStrip.cs
- ListViewInsertionMark.cs
- FrameworkTemplate.cs
- unsafenativemethodsother.cs
- XmlSchemaAll.cs
- ListQueryResults.cs
- BitStack.cs
- tibetanshape.cs
- commandenforcer.cs
- RectangleHotSpot.cs
- TraceContextEventArgs.cs
- RelationshipEnd.cs
- CFStream.cs
- XmlDownloadManager.cs
- FieldDescriptor.cs
- ZipIOLocalFileDataDescriptor.cs
- HttpAsyncResult.cs
- BinaryObjectReader.cs
- EventProviderWriter.cs
- ExeConfigurationFileMap.cs
- ObjectDesignerDataSourceView.cs
- ASCIIEncoding.cs
- SqlError.cs
- ParamArrayAttribute.cs
- AggregatePushdown.cs
- ClientTargetSection.cs
- SoapAttributeAttribute.cs
- SelectionChangedEventArgs.cs
- PropertyStore.cs
- ListContractAdapter.cs
- AssociationSetEnd.cs
- HostVisual.cs
- CategoryGridEntry.cs
- DataListItemCollection.cs
- Polygon.cs