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
- ObjectStateEntryDbUpdatableDataRecord.cs
- SqlGenerator.cs
- UIElement3D.cs
- CompilationLock.cs
- DataGridViewColumnCollection.cs
- EDesignUtil.cs
- WebPartVerbsEventArgs.cs
- XPathDescendantIterator.cs
- SystemDiagnosticsSection.cs
- TabControlToolboxItem.cs
- WebEvents.cs
- LinqDataSource.cs
- UInt64.cs
- ConnectionProviderAttribute.cs
- VectorConverter.cs
- StringFreezingAttribute.cs
- Decimal.cs
- ListViewDeletedEventArgs.cs
- SQLDoubleStorage.cs
- CompilationUtil.cs
- PointUtil.cs
- RegistrationServices.cs
- Expression.DebuggerProxy.cs
- KoreanLunisolarCalendar.cs
- FontConverter.cs
- FilterException.cs
- LogWriteRestartAreaAsyncResult.cs
- NavigationProgressEventArgs.cs
- Missing.cs
- XmlElement.cs
- SchemaInfo.cs
- IERequestCache.cs
- DefaultParameterValueAttribute.cs
- XmlIlVisitor.cs
- control.ime.cs
- DesignerDataTable.cs
- AsyncPostBackErrorEventArgs.cs
- CodeTypeOfExpression.cs
- CharEnumerator.cs
- IntegerFacetDescriptionElement.cs
- ContainerTracking.cs
- QueryCursorEventArgs.cs
- VBIdentifierDesigner.xaml.cs
- IISMapPath.cs
- ButtonRenderer.cs
- PropertyGridEditorPart.cs
- DataGridColumnCollection.cs
- ResolvedKeyFrameEntry.cs
- DataGridCellItemAutomationPeer.cs
- PlatformNotSupportedException.cs
- Point3DCollectionValueSerializer.cs
- _AuthenticationState.cs
- CodeIdentifier.cs
- Transform3DCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- TripleDES.cs
- Base64Decoder.cs
- CounterCreationData.cs
- DesignerVerbCollection.cs
- XmlSchemaProviderAttribute.cs
- FormatConvertedBitmap.cs
- ScaleTransform3D.cs
- LineServicesCallbacks.cs
- PageThemeParser.cs
- DesignerImageAdapter.cs
- XmlEntityReference.cs
- MailSettingsSection.cs
- IPAddress.cs
- OperatorExpressions.cs
- ContainerParagraph.cs
- RegistryDataKey.cs
- GiveFeedbackEventArgs.cs
- StrongNameMembershipCondition.cs
- GridPattern.cs
- FixedHyperLink.cs
- XmlAttribute.cs
- DurableInstanceProvider.cs
- DbProviderFactoriesConfigurationHandler.cs
- Propagator.Evaluator.cs
- CodeTypeDeclaration.cs
- FormViewModeEventArgs.cs
- SequentialWorkflowRootDesigner.cs
- SaveFileDialog.cs
- ValidatedControlConverter.cs
- SQLBytes.cs
- OneWayElement.cs
- DrawingContextDrawingContextWalker.cs
- AnnotationObservableCollection.cs
- Update.cs
- TreeViewEvent.cs
- XmlEncoding.cs
- ArrayExtension.cs
- WebPartEventArgs.cs
- LicenseProviderAttribute.cs
- DataGridRelationshipRow.cs
- XmlnsCompatibleWithAttribute.cs
- DictionaryManager.cs
- WorkflowElementDialog.cs
- InternalConfigRoot.cs
- CodeTypeDeclarationCollection.cs