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
- OperationFormatUse.cs
- RequiredAttributeAttribute.cs
- MsmqIntegrationMessageProperty.cs
- CrossAppDomainChannel.cs
- SecurityContext.cs
- InkCanvasSelection.cs
- ConfigurationPropertyCollection.cs
- SmiMetaDataProperty.cs
- NaturalLanguageHyphenator.cs
- HttpVersion.cs
- GPRECT.cs
- StructureChangedEventArgs.cs
- InfiniteTimeSpanConverter.cs
- ZipIOLocalFileHeader.cs
- XmlDocument.cs
- StringFormat.cs
- EllipticalNodeOperations.cs
- ColumnReorderedEventArgs.cs
- TextTreeRootTextBlock.cs
- DataGridTableCollection.cs
- TypeLoader.cs
- FileDataSourceCache.cs
- Point3D.cs
- EventListenerClientSide.cs
- EntitySqlQueryCacheKey.cs
- ExpressionWriter.cs
- OracleCommandBuilder.cs
- EpmSourcePathSegment.cs
- PasswordDeriveBytes.cs
- FormViewCommandEventArgs.cs
- GenericTypeParameterBuilder.cs
- XmlSchemaAttributeGroupRef.cs
- CompositeDispatchFormatter.cs
- StaticFileHandler.cs
- ObjectSpanRewriter.cs
- TextTreeDeleteContentUndoUnit.cs
- _emptywebproxy.cs
- RequestNavigateEventArgs.cs
- ParserExtension.cs
- MediaSystem.cs
- Math.cs
- AppearanceEditorPart.cs
- _ConnectionGroup.cs
- Link.cs
- TranslateTransform3D.cs
- BitmapFrameDecode.cs
- SectionUpdates.cs
- ConfigXmlWhitespace.cs
- ToolStripPanelRow.cs
- ExtentKey.cs
- ListViewInsertionMark.cs
- DetailsViewUpdatedEventArgs.cs
- ComPlusDiagnosticTraceSchemas.cs
- XPathArrayIterator.cs
- SafeRegistryHandle.cs
- Util.cs
- IdentityHolder.cs
- HMACMD5.cs
- XpsFilter.cs
- PersonalizableAttribute.cs
- SQLByteStorage.cs
- CellParaClient.cs
- SqlInfoMessageEvent.cs
- PolicyUnit.cs
- XslCompiledTransform.cs
- MaterialCollection.cs
- DrawingContextWalker.cs
- MessageBuilder.cs
- Token.cs
- DnsPermission.cs
- SQLDateTimeStorage.cs
- MulticastOption.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- BufferedGraphics.cs
- LicenseContext.cs
- ListBox.cs
- UserControlAutomationPeer.cs
- WebPartHelpVerb.cs
- Timer.cs
- UnsafeNativeMethodsCLR.cs
- PageSetupDialog.cs
- TemplateNameScope.cs
- Rotation3D.cs
- XmlAttributeAttribute.cs
- WizardStepBase.cs
- SamlConstants.cs
- ExceptionHandler.cs
- QuestionEventArgs.cs
- SchemaImporterExtensionsSection.cs
- TrackBarRenderer.cs
- DeferredTextReference.cs
- ZoneLinkButton.cs
- XmlUtil.cs
- GlyphRunDrawing.cs
- Light.cs
- UnicodeEncoding.cs
- TextSchema.cs
- ExpressionDumper.cs