Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Server / System / Data / Services / DataServiceHostFactory.cs / 1 / 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
- TextRangeSerialization.cs
- ToolStripMenuItem.cs
- FirstMatchCodeGroup.cs
- ObjectFullSpanRewriter.cs
- SHA384Managed.cs
- MarginCollapsingState.cs
- SizeF.cs
- ServiceNotStartedException.cs
- QilFunction.cs
- LongValidatorAttribute.cs
- Mouse.cs
- SqlDataSourceSelectingEventArgs.cs
- AssemblySettingAttributes.cs
- QueryCursorEventArgs.cs
- IndicShape.cs
- CompilationRelaxations.cs
- OracleRowUpdatingEventArgs.cs
- JoinCqlBlock.cs
- InputLanguageEventArgs.cs
- URL.cs
- LinkedResourceCollection.cs
- FormatterServices.cs
- ClientRolePrincipal.cs
- InsufficientMemoryException.cs
- DocumentPage.cs
- XmlSchemaInfo.cs
- GridEntryCollection.cs
- FormatException.cs
- HandlerBase.cs
- ReadOnlyAttribute.cs
- DoubleStorage.cs
- EnumerableRowCollection.cs
- _ChunkParse.cs
- TcpActivation.cs
- XmlLanguageConverter.cs
- SuspendDesigner.cs
- WorkflowTransactionOptions.cs
- ItemsPanelTemplate.cs
- DbConnectionPoolOptions.cs
- StreamReader.cs
- PriorityQueue.cs
- SubclassTypeValidatorAttribute.cs
- NamedPipeConnectionPool.cs
- ActionMessageFilterTable.cs
- UpdateManifestForBrowserApplication.cs
- MexHttpsBindingCollectionElement.cs
- PrintDialog.cs
- FeatureSupport.cs
- OpCodes.cs
- SourceChangedEventArgs.cs
- TextPointer.cs
- ImmutableCollection.cs
- SchemaImporterExtensionElement.cs
- ClientSettingsStore.cs
- ViewEvent.cs
- CurrentChangedEventManager.cs
- COAUTHIDENTITY.cs
- TraceEventCache.cs
- PackWebRequest.cs
- CodeIdentifier.cs
- TextBox.cs
- ProcessModelInfo.cs
- MDIControlStrip.cs
- XmlConvert.cs
- FormViewInsertEventArgs.cs
- FormViewInsertEventArgs.cs
- AmbientProperties.cs
- WebEventCodes.cs
- BasicExpandProvider.cs
- GeometryCollection.cs
- MultiBindingExpression.cs
- SystemIPInterfaceStatistics.cs
- NetworkInformationException.cs
- TreeNode.cs
- StopStoryboard.cs
- DeclarativeCatalogPart.cs
- ListControl.cs
- XmlnsDictionary.cs
- LinqToSqlWrapper.cs
- HtmlTableRow.cs
- HttpEncoderUtility.cs
- TabControlEvent.cs
- Rect3DValueSerializer.cs
- HtmlTableRow.cs
- Point3DCollection.cs
- HttpDictionary.cs
- EventLogTraceListener.cs
- BindingOperations.cs
- CryptoApi.cs
- BamlLocalizationDictionary.cs
- xsdvalidator.cs
- DependencyObjectType.cs
- WebErrorHandler.cs
- OleDbSchemaGuid.cs
- HierarchicalDataBoundControl.cs
- WinEventTracker.cs
- GeometryValueSerializer.cs
- ClientConvert.cs
- AdCreatedEventArgs.cs
- NotifyIcon.cs