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, 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.
//------------------------------------------------------------------------------
// 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
- ListBoxItem.cs
- Soap12ProtocolReflector.cs
- EmbeddedMailObjectsCollection.cs
- VerificationAttribute.cs
- XPathNode.cs
- CookieHandler.cs
- ProgressBarHighlightConverter.cs
- PageVisual.cs
- ConnectionStringsSection.cs
- SmtpClient.cs
- FormViewDeletedEventArgs.cs
- MemberJoinTreeNode.cs
- Int32KeyFrameCollection.cs
- ComponentCodeDomSerializer.cs
- Simplifier.cs
- PeerCollaboration.cs
- ISAPIWorkerRequest.cs
- BrushConverter.cs
- CodeSubDirectory.cs
- CompleteWizardStep.cs
- Cursor.cs
- ExtensionsSection.cs
- EncryptedReference.cs
- ObjectStateEntryDbDataRecord.cs
- StandardToolWindows.cs
- CommandHelper.cs
- HttpWrapper.cs
- WebPartEditVerb.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GenericXmlSecurityToken.cs
- SqlDependencyListener.cs
- CachedFontFamily.cs
- VirtualPathUtility.cs
- DataRowIndexBuffer.cs
- ToolboxComponentsCreatingEventArgs.cs
- ModuleBuilder.cs
- TextEditorContextMenu.cs
- StrokeNodeEnumerator.cs
- DataServiceClientException.cs
- HtmlTextViewAdapter.cs
- DispatcherTimer.cs
- WindowsFormsLinkLabel.cs
- MenuItemBindingCollection.cs
- CngKeyBlobFormat.cs
- RangeContentEnumerator.cs
- OleDbConnectionFactory.cs
- Ref.cs
- BitmapEffectDrawingContextWalker.cs
- WebPartDeleteVerb.cs
- XmlImplementation.cs
- RubberbandSelector.cs
- SByte.cs
- UInt64Storage.cs
- recordstate.cs
- HttpTransportBindingElement.cs
- KeyboardDevice.cs
- FormViewCommandEventArgs.cs
- BamlResourceDeserializer.cs
- SR.Designer.cs
- CmsInterop.cs
- HttpVersion.cs
- WindowsSecurityToken.cs
- HTMLTextWriter.cs
- ModelTypeConverter.cs
- TransactedBatchContext.cs
- ObjectNotFoundException.cs
- MetadataItem_Static.cs
- Positioning.cs
- DefaultIfEmptyQueryOperator.cs
- WindowsTokenRoleProvider.cs
- OleDbCommand.cs
- KeyValueSerializer.cs
- XmlCompatibilityReader.cs
- MarginsConverter.cs
- TrailingSpaceComparer.cs
- BrushMappingModeValidation.cs
- TraceHandlerErrorFormatter.cs
- ISFTagAndGuidCache.cs
- TextEncodedRawTextWriter.cs
- XPathNavigator.cs
- MetadataSet.cs
- FileDialogPermission.cs
- TemplatePropertyEntry.cs
- TypeValidationEventArgs.cs
- HttpPostProtocolReflector.cs
- AssemblyNameProxy.cs
- EditorPartChrome.cs
- mediaeventshelper.cs
- PropertyMapper.cs
- SurrogateChar.cs
- DynamicValidatorEventArgs.cs
- CollectionBuilder.cs
- ListSortDescription.cs
- TypeNameConverter.cs
- SQLMembershipProvider.cs
- PeerNameRecord.cs
- XmlSchemaAnyAttribute.cs
- PersistenceTypeAttribute.cs
- TargetInvocationException.cs
- SectionRecord.cs