Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / UseManagedPresentationBindingElement.cs / 1 / UseManagedPresentationBindingElement.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.ServiceModel.Configuration; using System.ServiceModel.Description; using System.Xml; public sealed class UseManagedPresentationBindingElement : BindingElement, IPolicyExportExtension { public UseManagedPresentationBindingElement() { } public override BindingElement Clone() { return new UseManagedPresentationBindingElement(); } public override T GetProperty(BindingContext context) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); } return context.GetInnerProperty (); } void IPolicyExportExtension.ExportPolicy(MetadataExporter exporter, PolicyConversionContext context) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); } if (context.BindingElements != null) { UseManagedPresentationBindingElement settings = context.BindingElements.Find (); if (settings != null) { XmlDocument doc = new XmlDocument(); // UseUseManagedPresentation assertion XmlElement assertion = doc.CreateElement(UseManagedPresentationPolicyStrings.UseManagedPresentationPrefix, UseManagedPresentationPolicyStrings.RequireFederatedIdentityProvisioningName, UseManagedPresentationPolicyStrings.UseManagedPresentationNamespace); context.GetBindingAssertions().Add(assertion); } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaGroupRef.cs
- PageAdapter.cs
- DataRecordObjectView.cs
- DocComment.cs
- GiveFeedbackEvent.cs
- HttpCachePolicyElement.cs
- DescendantOverDescendantQuery.cs
- FileDialog.cs
- TextProperties.cs
- loginstatus.cs
- PhonemeEventArgs.cs
- LinkedResource.cs
- EventMap.cs
- EmptyEnumerable.cs
- GraphicsPathIterator.cs
- EntityContainerEmitter.cs
- SiteMembershipCondition.cs
- DropSource.cs
- ThreadAbortException.cs
- _SslSessionsCache.cs
- OperatingSystem.cs
- AtlasWeb.Designer.cs
- ISFTagAndGuidCache.cs
- XmlIgnoreAttribute.cs
- CreateUserWizard.cs
- TableItemProviderWrapper.cs
- OleDbParameterCollection.cs
- Stacktrace.cs
- XmlDataDocument.cs
- RoutedEventConverter.cs
- RouteItem.cs
- ReceiveActivityDesigner.cs
- IndexedGlyphRun.cs
- JsonEncodingStreamWrapper.cs
- SqlDelegatedTransaction.cs
- InvalidAsynchronousStateException.cs
- XmlArrayAttribute.cs
- ProfileInfo.cs
- ConversionHelper.cs
- DataServiceSaveChangesEventArgs.cs
- Char.cs
- XmlTextReaderImplHelpers.cs
- ProviderConnectionPointCollection.cs
- TTSEngineProxy.cs
- CheckedPointers.cs
- MenuAdapter.cs
- DataGridRowDetailsEventArgs.cs
- TemplateField.cs
- DebugView.cs
- ManagementInstaller.cs
- ListViewCancelEventArgs.cs
- SourceLineInfo.cs
- DecodeHelper.cs
- RelatedPropertyManager.cs
- WindowsPen.cs
- GenericUriParser.cs
- AncestorChangedEventArgs.cs
- GridViewDeletedEventArgs.cs
- HideDisabledControlAdapter.cs
- GuidConverter.cs
- Transform3DGroup.cs
- EnumDataContract.cs
- UIElementAutomationPeer.cs
- formatter.cs
- _HeaderInfo.cs
- Columns.cs
- CaseInsensitiveHashCodeProvider.cs
- VariableQuery.cs
- UrlAuthFailedErrorFormatter.cs
- IconHelper.cs
- PagesSection.cs
- ReadOnlyCollectionBase.cs
- ClientSession.cs
- ContainerParaClient.cs
- TrackingRecord.cs
- WpfKnownMemberInvoker.cs
- Tuple.cs
- RegexReplacement.cs
- CopyNamespacesAction.cs
- CalendarDateRangeChangingEventArgs.cs
- PropertyEmitter.cs
- SqlConnectionString.cs
- ZipIOLocalFileHeader.cs
- clipboard.cs
- SafeWaitHandle.cs
- XPathQueryGenerator.cs
- OperationAbortedException.cs
- LinqDataSourceValidationException.cs
- InternalsVisibleToAttribute.cs
- TitleStyle.cs
- TypeExtensionSerializer.cs
- DES.cs
- SafeRightsManagementHandle.cs
- BlobPersonalizationState.cs
- DataServiceHostFactory.cs
- QuaternionAnimation.cs
- SqlDataSourceCustomCommandPanel.cs
- IssuanceTokenProviderState.cs
- DataTableMappingCollection.cs
- StateInitializationDesigner.cs