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
- HttpPostedFileBase.cs
- QueryHandler.cs
- FilePrompt.cs
- TextSelectionHelper.cs
- PresentationAppDomainManager.cs
- DocumentXPathNavigator.cs
- odbcmetadatacolumnnames.cs
- IndentedWriter.cs
- BindingValueChangedEventArgs.cs
- RenderCapability.cs
- SeekStoryboard.cs
- XmlElementAttribute.cs
- ReferenceEqualityComparer.cs
- DefaultWorkflowSchedulerService.cs
- TreeNodeCollection.cs
- ObjectDataSource.cs
- Cursors.cs
- InheritanceAttribute.cs
- Rect3D.cs
- AssertFilter.cs
- EventNotify.cs
- CryptoSession.cs
- NavigationEventArgs.cs
- EventListenerClientSide.cs
- ServiceElementCollection.cs
- TextStore.cs
- DataListItemEventArgs.cs
- ImageCodecInfo.cs
- Win32KeyboardDevice.cs
- ShadowGlyph.cs
- IntSecurity.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HtmlElementEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- ListControlStringCollectionEditor.cs
- JsonEncodingStreamWrapper.cs
- TextTreeDeleteContentUndoUnit.cs
- ElementInit.cs
- RequestTimeoutManager.cs
- BuildTopDownAttribute.cs
- CopyEncoder.cs
- Button.cs
- WindowsScrollBar.cs
- NotSupportedException.cs
- ToolBarDesigner.cs
- ApplicationHost.cs
- AutomationPatternInfo.cs
- RepeaterItem.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- JoinCqlBlock.cs
- ReadOnlyCollectionBuilder.cs
- TextTrailingCharacterEllipsis.cs
- RowCache.cs
- Compiler.cs
- SqlNodeAnnotation.cs
- RootAction.cs
- MeasurementDCInfo.cs
- SchemaImporter.cs
- AttachmentService.cs
- Timer.cs
- PersonalizableTypeEntry.cs
- ValueUtilsSmi.cs
- Types.cs
- XmlSchemaAny.cs
- DebugHandleTracker.cs
- ParameterReplacerVisitor.cs
- XmlChildNodes.cs
- PixelFormat.cs
- RewritingProcessor.cs
- SharedPerformanceCounter.cs
- mda.cs
- TouchPoint.cs
- Timer.cs
- ComPlusTraceRecord.cs
- ClipboardData.cs
- MetadataArtifactLoaderResource.cs
- TableLayoutPanel.cs
- WindowsTab.cs
- WorkflowElementDialogWindow.xaml.cs
- TreeNodeEventArgs.cs
- DataGridPageChangedEventArgs.cs
- NodeFunctions.cs
- StateBag.cs
- Expression.cs
- EnumValAlphaComparer.cs
- ProcessThread.cs
- CurrentChangingEventArgs.cs
- BaseTemplateBuildProvider.cs
- PrimaryKeyTypeConverter.cs
- DataServiceQueryContinuation.cs
- EntryPointNotFoundException.cs
- CssStyleCollection.cs
- CellParagraph.cs
- WebBrowserUriTypeConverter.cs
- FixedSOMSemanticBox.cs
- OutputWindow.cs
- ResourceWriter.cs
- PaperSize.cs
- UIElementHelper.cs
- RoleService.cs