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
- HtmlAnchor.cs
- SoapEnvelopeProcessingElement.cs
- SystemInfo.cs
- TitleStyle.cs
- DataRecordInternal.cs
- WebEncodingValidator.cs
- ExecutedRoutedEventArgs.cs
- ToolStripOverflowButton.cs
- ZipIOExtraFieldElement.cs
- ToolboxItem.cs
- UpdateRecord.cs
- smtppermission.cs
- TypeUnloadedException.cs
- TextFindEngine.cs
- ListArgumentProvider.cs
- ThrowHelper.cs
- DiscoveryInnerClientAdhocCD1.cs
- Condition.cs
- QueryOutputWriter.cs
- KnownBoxes.cs
- ConfigurationSchemaErrors.cs
- DocumentManager.cs
- DefaultProxySection.cs
- InputGestureCollection.cs
- DocumentGridPage.cs
- WebPartMenu.cs
- AppendHelper.cs
- oledbmetadatacolumnnames.cs
- DataTableReaderListener.cs
- FormViewUpdatedEventArgs.cs
- SerializationEventsCache.cs
- XmlCharCheckingWriter.cs
- XXXInfos.cs
- GridViewRowCollection.cs
- ObjectToIdCache.cs
- RbTree.cs
- ApplicationBuildProvider.cs
- MenuItemBindingCollection.cs
- Floater.cs
- GeneralTransform2DTo3DTo2D.cs
- DataGrid.cs
- TdsParserStaticMethods.cs
- PropertyFilterAttribute.cs
- InkCanvasAutomationPeer.cs
- EpmHelper.cs
- IDispatchConstantAttribute.cs
- SizeIndependentAnimationStorage.cs
- Model3DCollection.cs
- SqlFunctions.cs
- relpropertyhelper.cs
- OutputCacheSettings.cs
- ThreadPool.cs
- GuidTagList.cs
- ServiceModelConfigurationSectionCollection.cs
- NavigationWindow.cs
- MailWebEventProvider.cs
- ComponentRenameEvent.cs
- RewritingValidator.cs
- SelectedDatesCollection.cs
- TextTreeRootNode.cs
- TemplateInstanceAttribute.cs
- CapiSymmetricAlgorithm.cs
- DataSysAttribute.cs
- EmbeddedObject.cs
- FlowDocument.cs
- InputReferenceExpression.cs
- TextElementAutomationPeer.cs
- Wizard.cs
- DocumentGridContextMenu.cs
- FastEncoder.cs
- DataListItemCollection.cs
- Renderer.cs
- FlagsAttribute.cs
- Point4DConverter.cs
- HtmlInputRadioButton.cs
- ToolBarButton.cs
- PersonalizationAdministration.cs
- XmlJsonWriter.cs
- DragCompletedEventArgs.cs
- FacetValues.cs
- CompleteWizardStep.cs
- HttpHandlersSection.cs
- HttpRawResponse.cs
- BuildManager.cs
- EntityDataSourceContextDisposingEventArgs.cs
- PageParserFilter.cs
- SafeProcessHandle.cs
- DrawingGroup.cs
- WebPart.cs
- TextEndOfParagraph.cs
- TableColumnCollection.cs
- Triplet.cs
- _NTAuthentication.cs
- SerializationAttributes.cs
- BevelBitmapEffect.cs
- GeometryModel3D.cs
- GenericXmlSecurityToken.cs
- WebPartTransformer.cs
- LayoutTableCell.cs
- ListViewTableRow.cs