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
- MouseActionConverter.cs
- Token.cs
- DataControlCommands.cs
- MenuItemBinding.cs
- ClientEventManager.cs
- ColorTranslator.cs
- ResolveCriteriaApril2005.cs
- M3DUtil.cs
- InputLanguage.cs
- mediapermission.cs
- ContainsRowNumberChecker.cs
- DataServiceKeyAttribute.cs
- PartitionResolver.cs
- CharEnumerator.cs
- Line.cs
- HostVisual.cs
- RtfToken.cs
- XmlUTF8TextReader.cs
- SoundPlayer.cs
- DataServiceHostFactory.cs
- dsa.cs
- DataRelationCollection.cs
- SecurityUniqueId.cs
- ZeroOpNode.cs
- WebPartTracker.cs
- SystemIcons.cs
- TimersDescriptionAttribute.cs
- BinaryConverter.cs
- OSEnvironmentHelper.cs
- Cursor.cs
- TextRange.cs
- EventLogConfiguration.cs
- XmlAnyElementAttributes.cs
- PageThemeParser.cs
- OutOfMemoryException.cs
- ExceptionUtil.cs
- SourceChangedEventArgs.cs
- Visual3DCollection.cs
- _NetworkingPerfCounters.cs
- Expressions.cs
- TraversalRequest.cs
- WorkflowDesignerMessageFilter.cs
- MD5Cng.cs
- MouseButtonEventArgs.cs
- SystemIcons.cs
- ModelItemKeyValuePair.cs
- SiteMap.cs
- TypeDependencyAttribute.cs
- DataSourceCacheDurationConverter.cs
- ObjectQueryProvider.cs
- XPathParser.cs
- HtmlGenericControl.cs
- TrackingRecord.cs
- ButtonColumn.cs
- DesignerTransaction.cs
- TokenBasedSet.cs
- EnvironmentPermission.cs
- SiteMap.cs
- FontUnitConverter.cs
- ObjectListItemCollection.cs
- HwndSourceKeyboardInputSite.cs
- Exceptions.cs
- CmsInterop.cs
- Util.cs
- MethodToken.cs
- ToolStripSplitStackLayout.cs
- brushes.cs
- RoleManagerSection.cs
- SafeNativeMethods.cs
- CompositeFontFamily.cs
- WebConfigurationHost.cs
- DefaultValueTypeConverter.cs
- ContextMenuStripActionList.cs
- SHA1CryptoServiceProvider.cs
- PathFigureCollection.cs
- AddressHeader.cs
- FormViewDeleteEventArgs.cs
- MultiView.cs
- Token.cs
- ConsumerConnectionPointCollection.cs
- FtpWebRequest.cs
- TableAdapterManagerNameHandler.cs
- ClientBuildManagerCallback.cs
- MenuItemStyle.cs
- DiscoveryEndpointElement.cs
- DoubleCollection.cs
- OverflowException.cs
- RawUIStateInputReport.cs
- LocationUpdates.cs
- FloaterParaClient.cs
- DataGridPagerStyle.cs
- DataControlField.cs
- CodeGen.cs
- TemplatedAdorner.cs
- PrinterSettings.cs
- FileCodeGroup.cs
- SystemUnicastIPAddressInformation.cs
- PassportAuthentication.cs
- AutomationIdentifierGuids.cs
- ItemCollection.cs