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
- TableCellCollection.cs
- SecurityUniqueId.cs
- TextWriterTraceListener.cs
- DurableInstanceContextProvider.cs
- VectorCollectionValueSerializer.cs
- ExpressionBuilderCollection.cs
- PKCS1MaskGenerationMethod.cs
- DbDataRecord.cs
- WindowsBrush.cs
- CacheSection.cs
- ObjectAnimationBase.cs
- UnsafeNativeMethods.cs
- IisTraceListener.cs
- ToolStripSeparatorRenderEventArgs.cs
- EndpointDiscoveryElement.cs
- TableLayout.cs
- UIntPtr.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- HttpApplicationFactory.cs
- PointHitTestResult.cs
- HasCopySemanticsAttribute.cs
- EntityDataSourceState.cs
- XmlILConstructAnalyzer.cs
- HttpServerVarsCollection.cs
- ClientFormsIdentity.cs
- OverrideMode.cs
- BrushValueSerializer.cs
- PropertySourceInfo.cs
- Margins.cs
- XmlRootAttribute.cs
- XmlSchemaSequence.cs
- StatusBar.cs
- Pair.cs
- MimeMultiPart.cs
- XPathItem.cs
- CodeTypeDeclarationCollection.cs
- _ConnectionGroup.cs
- ValuePattern.cs
- ToolStripComboBox.cs
- ArgumentNullException.cs
- XmlnsPrefixAttribute.cs
- EmissiveMaterial.cs
- ToolboxComponentsCreatingEventArgs.cs
- UserControlBuildProvider.cs
- TableParagraph.cs
- HtmlTable.cs
- DataGridRelationshipRow.cs
- XmlLanguageConverter.cs
- XmlUtilWriter.cs
- RegisteredDisposeScript.cs
- Int64AnimationBase.cs
- InfoCardBaseException.cs
- CheckBox.cs
- ZoneMembershipCondition.cs
- SqlCrossApplyToCrossJoin.cs
- ActivityDesignerAccessibleObject.cs
- HelpEvent.cs
- DesignerListAdapter.cs
- ImportContext.cs
- HttpRuntimeSection.cs
- DbTransaction.cs
- UnsafeNativeMethods.cs
- SetterBaseCollection.cs
- XPathSingletonIterator.cs
- Timer.cs
- HttpEncoderUtility.cs
- RelatedEnd.cs
- ConfigurationStrings.cs
- DbExpressionBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- CommonDialog.cs
- CngProperty.cs
- HyperLinkField.cs
- DataGridToolTip.cs
- MetafileHeaderWmf.cs
- DocumentPageTextView.cs
- GenericPrincipal.cs
- ConfigXmlElement.cs
- NameTable.cs
- SchemaImporterExtension.cs
- updateconfighost.cs
- IdentityModelDictionary.cs
- HGlobalSafeHandle.cs
- DataGridLinkButton.cs
- CodeExporter.cs
- SchemaType.cs
- ItemsControl.cs
- OpacityConverter.cs
- ResolvePPIDRequest.cs
- SrgsText.cs
- DataServiceHost.cs
- AdornedElementPlaceholder.cs
- AdornedElementPlaceholder.cs
- TextSelectionHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- BuilderElements.cs
- QilScopedVisitor.cs
- precedingquery.cs
- SqlNotificationEventArgs.cs
- FormatSelectingMessageInspector.cs