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
- StyleModeStack.cs
- CapabilitiesUse.cs
- InvokePattern.cs
- SignatureHelper.cs
- StackOverflowException.cs
- BitmapEffectCollection.cs
- XmlSchemaAttributeGroup.cs
- Serializer.cs
- TableLayoutSettings.cs
- XmlSchemaGroup.cs
- LinkedResourceCollection.cs
- DataGridViewComboBoxCell.cs
- FormsAuthenticationUserCollection.cs
- SwitchAttribute.cs
- XmlCompatibilityReader.cs
- BidOverLoads.cs
- WorkflowQueueInfo.cs
- CallId.cs
- OleDbCommand.cs
- SessionEndedEventArgs.cs
- DataGridTableCollection.cs
- HashSet.cs
- ErrorProvider.cs
- WpfSharedXamlSchemaContext.cs
- WriteTimeStream.cs
- LineVisual.cs
- WebPartActionVerb.cs
- FirewallWrapper.cs
- MouseEventArgs.cs
- basenumberconverter.cs
- Gdiplus.cs
- PromptStyle.cs
- isolationinterop.cs
- DrawingContextDrawingContextWalker.cs
- DropDownList.cs
- SQLBinaryStorage.cs
- CompositeFontParser.cs
- CalendarAutoFormatDialog.cs
- ReadOnlyDictionary.cs
- QilXmlReader.cs
- WebPartTransformerAttribute.cs
- ProxyHelper.cs
- SplayTreeNode.cs
- IdentityNotMappedException.cs
- XmlObjectSerializerReadContext.cs
- Attributes.cs
- NeutralResourcesLanguageAttribute.cs
- VectorKeyFrameCollection.cs
- StandardBindingElement.cs
- TextFindEngine.cs
- LineServicesCallbacks.cs
- ListBoxItemAutomationPeer.cs
- ContractMethodParameterInfo.cs
- PreservationFileWriter.cs
- Nullable.cs
- SoapExtensionTypeElement.cs
- ReplyChannel.cs
- GrowingArray.cs
- PathSegmentCollection.cs
- BufferedGraphicsContext.cs
- GridViewSortEventArgs.cs
- TextureBrush.cs
- ApplicationManager.cs
- AsyncCallback.cs
- DataRowExtensions.cs
- DnsPermission.cs
- PageMediaSize.cs
- FileDialogCustomPlace.cs
- CodeDefaultValueExpression.cs
- XmlSchemaInclude.cs
- TypeBuilder.cs
- TdsParameterSetter.cs
- HwndMouseInputProvider.cs
- AutomationElement.cs
- Component.cs
- CodeDirectiveCollection.cs
- CodeSnippetExpression.cs
- GradientStopCollection.cs
- LocatorPartList.cs
- MapPathBasedVirtualPathProvider.cs
- NodeLabelEditEvent.cs
- UnmanagedMarshal.cs
- CloseSequenceResponse.cs
- SchemaSetCompiler.cs
- BindingCompleteEventArgs.cs
- Send.cs
- CounterSampleCalculator.cs
- XamlStream.cs
- ParameterToken.cs
- DataGridPagerStyle.cs
- PaperSize.cs
- ResourceProviderFactory.cs
- PropertiesTab.cs
- Win32.cs
- FileFormatException.cs
- TrackingCondition.cs
- CellRelation.cs
- WinEventWrap.cs
- TemplatedEditableDesignerRegion.cs
- WorkflowItemPresenter.cs