Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / DataServiceHostFactory.cs / 1305376 / DataServiceHostFactory.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a way to hook up a WCF service as a raw HTTP handler.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System;
using System.ServiceModel;
using System.ServiceModel.Activation;
///
/// This structure supports the .NET Framework infrastructure and is
/// not intended to be used directly from your code.
///
///
/// This class is used to hook up a WCF as a raw HTTP handler.
///
public class DataServiceHostFactory : ServiceHostFactory
{
///
/// Creates a ServiceHost for a specified type of service with a specific base address.
///
/// Specifies the type of service to host.
/// The Array of type Uri that contains the base addresses for the service hosted.
/// A ServiceHost for the type of service specified with a specific base address.
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
return new DataServiceHost(serviceType, baseAddresses);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a way to hook up a WCF service as a raw HTTP handler.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System;
using System.ServiceModel;
using System.ServiceModel.Activation;
///
/// This structure supports the .NET Framework infrastructure and is
/// not intended to be used directly from your code.
///
///
/// This class is used to hook up a WCF as a raw HTTP handler.
///
public class DataServiceHostFactory : ServiceHostFactory
{
///
/// Creates a ServiceHost for a specified type of service with a specific base address.
///
/// Specifies the type of service to host.
/// The Array of type Uri that contains the base addresses for the service hosted.
/// A ServiceHost for the type of service specified with a specific base address.
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
return new DataServiceHost(serviceType, baseAddresses);
}
}
}
// 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
- CorrelationValidator.cs
- ExistsInCollection.cs
- bidPrivateBase.cs
- GrammarBuilderDictation.cs
- FormatConvertedBitmap.cs
- DataRowCollection.cs
- WebConfigurationManager.cs
- ArgumentOutOfRangeException.cs
- PointKeyFrameCollection.cs
- DateTime.cs
- CriticalExceptions.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Helpers.cs
- Utility.cs
- XmlDictionary.cs
- Soap.cs
- OleDbDataReader.cs
- ValidationPropertyAttribute.cs
- AudioFileOut.cs
- WebControl.cs
- PixelFormatConverter.cs
- ExceptionUtil.cs
- StylusPlugin.cs
- TagPrefixAttribute.cs
- Thickness.cs
- PagerSettings.cs
- AnnotationResource.cs
- XmlTextWriter.cs
- XmlCollation.cs
- InstanceHandleReference.cs
- SqlDataReader.cs
- PropertyValue.cs
- ViewRendering.cs
- LiteralControl.cs
- Semaphore.cs
- UrlParameterWriter.cs
- Mappings.cs
- InvokeHandlers.cs
- Brushes.cs
- Vector3DKeyFrameCollection.cs
- GlyphRunDrawing.cs
- TextRangeSerialization.cs
- DomainUpDown.cs
- DataServiceCollectionOfT.cs
- SourceFilter.cs
- PropertyPushdownHelper.cs
- DataReaderContainer.cs
- DataControlReference.cs
- InternalCache.cs
- xmlNames.cs
- ProviderCommandInfoUtils.cs
- EdmComplexTypeAttribute.cs
- PrimitiveXmlSerializers.cs
- ListViewItemMouseHoverEvent.cs
- ToolboxComponentsCreatedEventArgs.cs
- DataGridViewLinkCell.cs
- XamlSerializer.cs
- DBSchemaRow.cs
- EncoderParameter.cs
- StateMachine.cs
- FtpWebRequest.cs
- MonikerSyntaxException.cs
- ProvidersHelper.cs
- DesignTimeTemplateParser.cs
- CustomCredentialPolicy.cs
- XmlUnspecifiedAttribute.cs
- WebPartConnectionsConnectVerb.cs
- NavigationProgressEventArgs.cs
- XmlNodeList.cs
- BamlLocalizationDictionary.cs
- GridViewEditEventArgs.cs
- RadioButtonList.cs
- documentsequencetextpointer.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CharacterString.cs
- SimpleWebHandlerParser.cs
- XmlSchemaImport.cs
- CharacterBuffer.cs
- NativeMethods.cs
- WebPartVerbsEventArgs.cs
- ObjectCache.cs
- InvokeMethodActivity.cs
- XPathMultyIterator.cs
- TextBox.cs
- HMACMD5.cs
- UInt64Storage.cs
- TranslateTransform.cs
- ExpressionBuilderContext.cs
- StylusEventArgs.cs
- BackStopAuthenticationModule.cs
- DetailsViewPagerRow.cs
- XmlSerializerFaultFormatter.cs
- NonBatchDirectoryCompiler.cs
- DataControlFieldHeaderCell.cs
- RegionData.cs
- WebPartVerbsEventArgs.cs
- CorrelationService.cs
- UpdateDelegates.Generated.cs
- DataObjectFieldAttribute.cs
- WindowsContainer.cs