Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / System.ServiceModel.Activation / System / ServiceModel / Activation / HostedBindingBehavior.cs / 1305376 / HostedBindingBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Description; using System.Collections.ObjectModel; using System.ServiceModel.Channels; class HostedBindingBehavior : IServiceBehavior { VirtualPathExtension virtualPathExtension; internal HostedBindingBehavior(VirtualPathExtension virtualPathExtension) { this.virtualPathExtension = virtualPathExtension; } public VirtualPathExtension VirtualPathExtension { get { return this.virtualPathExtension; } } void IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase) { } void IServiceBehavior.AddBindingParameters(ServiceDescription description, ServiceHostBase serviceHostBase, Collectionendpoints, BindingParameterCollection parameters) { if (parameters == null) { throw FxTrace.Exception.ArgumentNull("parameters"); } parameters.Add(this.virtualPathExtension); } void IServiceBehavior.ApplyDispatchBehavior(ServiceDescription description, ServiceHostBase serviceHostBase) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Description; using System.Collections.ObjectModel; using System.ServiceModel.Channels; class HostedBindingBehavior : IServiceBehavior { VirtualPathExtension virtualPathExtension; internal HostedBindingBehavior(VirtualPathExtension virtualPathExtension) { this.virtualPathExtension = virtualPathExtension; } public VirtualPathExtension VirtualPathExtension { get { return this.virtualPathExtension; } } void IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase) { } void IServiceBehavior.AddBindingParameters(ServiceDescription description, ServiceHostBase serviceHostBase, Collection endpoints, BindingParameterCollection parameters) { if (parameters == null) { throw FxTrace.Exception.ArgumentNull("parameters"); } parameters.Add(this.virtualPathExtension); } void IServiceBehavior.ApplyDispatchBehavior(ServiceDescription description, ServiceHostBase serviceHostBase) { } } } // 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
- TextOutput.cs
- Html32TextWriter.cs
- GuidelineSet.cs
- EventHandlerList.cs
- OdbcTransaction.cs
- DesignerEventService.cs
- TypeConverterHelper.cs
- StackOverflowException.cs
- DataControlCommands.cs
- ProtocolImporter.cs
- ExpressionBuilder.cs
- InlineCategoriesDocument.cs
- XmlObjectSerializer.cs
- KeyGestureValueSerializer.cs
- Rotation3DKeyFrameCollection.cs
- InputDevice.cs
- KeyPressEvent.cs
- RelOps.cs
- DynamicDataRoute.cs
- typedescriptorpermissionattribute.cs
- ServerIdentity.cs
- EmptyEnumerable.cs
- StaticFileHandler.cs
- PagedControl.cs
- DataGridTextBox.cs
- SerializerWriterEventHandlers.cs
- SelectionRange.cs
- _emptywebproxy.cs
- EventProxy.cs
- SchemaElementDecl.cs
- SerializationHelper.cs
- AdornerHitTestResult.cs
- RegexRunner.cs
- CurrentChangingEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- EventManager.cs
- sqlinternaltransaction.cs
- WSHttpSecurityElement.cs
- WebRequestModulesSection.cs
- ResourceContainerWrapper.cs
- EndPoint.cs
- AccessibleObject.cs
- IPEndPoint.cs
- InfoCardSymmetricCrypto.cs
- KeysConverter.cs
- DataGridHeaderBorder.cs
- ListMarkerLine.cs
- TextSearch.cs
- InvalidChannelBindingException.cs
- ArgumentException.cs
- HtmlUtf8RawTextWriter.cs
- MethodCallConverter.cs
- SqlMethodAttribute.cs
- X509CertificateCollection.cs
- MSAANativeProvider.cs
- BamlRecords.cs
- TimeSpanMinutesConverter.cs
- SiteMap.cs
- SolidColorBrush.cs
- TwoPhaseCommitProxy.cs
- XPathNodeList.cs
- RegexRunnerFactory.cs
- ContextStack.cs
- CngAlgorithm.cs
- TypedElement.cs
- TextMarkerSource.cs
- ExeConfigurationFileMap.cs
- MessageQueueCriteria.cs
- BookmarkScope.cs
- XmlHierarchicalDataSourceView.cs
- input.cs
- SingleConverter.cs
- Stack.cs
- ExtensionSurface.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- HtmlDocument.cs
- ConfigurationManager.cs
- CompoundFileReference.cs
- ScrollProviderWrapper.cs
- DelegatingHeader.cs
- DefaultEventAttribute.cs
- ValueCollectionParameterReader.cs
- TraceFilter.cs
- TextBoxDesigner.cs
- SyndicationItemFormatter.cs
- ResourceReader.cs
- FontFamilyIdentifier.cs
- ReferencedCategoriesDocument.cs
- SmtpClient.cs
- ArraySubsetEnumerator.cs
- WCFBuildProvider.cs
- DataObjectSettingDataEventArgs.cs
- BinaryWriter.cs
- FillRuleValidation.cs
- ExtendedProtectionPolicy.cs
- ScriptComponentDescriptor.cs
- DocumentCollection.cs
- IconConverter.cs
- HtmlTableCellCollection.cs
- Color.cs