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
- CorrelationTokenTypeConvertor.cs
- EntityContainerEmitter.cs
- RequestBringIntoViewEventArgs.cs
- FocusWithinProperty.cs
- InvokeGenerator.cs
- Enum.cs
- GenericPrincipal.cs
- XmlILConstructAnalyzer.cs
- TextBox.cs
- ScheduleChanges.cs
- BinaryKeyIdentifierClause.cs
- CalculatedColumn.cs
- TimeoutValidationAttribute.cs
- ChildChangedEventArgs.cs
- UpdateException.cs
- UnauthorizedAccessException.cs
- columnmapfactory.cs
- ConfigurationManager.cs
- StrokeFIndices.cs
- Group.cs
- SignatureResourcePool.cs
- AdRotator.cs
- VariableAction.cs
- _PooledStream.cs
- Rectangle.cs
- ListSourceHelper.cs
- EventBuilder.cs
- Vector3DConverter.cs
- ClassValidator.cs
- ClonableStack.cs
- TrackBarRenderer.cs
- MonthChangedEventArgs.cs
- ResourcePermissionBaseEntry.cs
- CodeParameterDeclarationExpression.cs
- Property.cs
- LowerCaseStringConverter.cs
- SafeProcessHandle.cs
- DateTimePicker.cs
- InfoCardSymmetricAlgorithm.cs
- PerfService.cs
- DesignTimeParseData.cs
- MetadataImporterQuotas.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- BaseParaClient.cs
- AttachmentService.cs
- RegexBoyerMoore.cs
- Processor.cs
- FrameworkElement.cs
- RIPEMD160Managed.cs
- DbDataRecord.cs
- OdbcCommand.cs
- SimpleType.cs
- ResourceContainerWrapper.cs
- _DisconnectOverlappedAsyncResult.cs
- RemoveStoryboard.cs
- AccessibleObject.cs
- ContentDisposition.cs
- SmtpCommands.cs
- HttpRuntimeSection.cs
- MarkupCompilePass2.cs
- util.cs
- RSAProtectedConfigurationProvider.cs
- Annotation.cs
- TextDecorations.cs
- DescendentsWalkerBase.cs
- TokenFactoryBase.cs
- RenderData.cs
- Color.cs
- TriggerBase.cs
- ConfigurationPropertyCollection.cs
- PersonalizableAttribute.cs
- LinqDataSource.cs
- CodeStatement.cs
- AssemblyInfo.cs
- StringInfo.cs
- QilParameter.cs
- ProtocolsSection.cs
- NotifyInputEventArgs.cs
- CodeStatement.cs
- Pair.cs
- IncrementalHitTester.cs
- ObjectTag.cs
- XsdValidatingReader.cs
- ConfigXmlAttribute.cs
- Domain.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- SQLBoolean.cs
- RoutedEventArgs.cs
- FaultDescriptionCollection.cs
- Properties.cs
- xmlfixedPageInfo.cs
- RenderDataDrawingContext.cs
- RegexRunner.cs
- ColorTransformHelper.cs
- TrackingAnnotationCollection.cs
- DependentList.cs
- MetaModel.cs
- WebControlParameterProxy.cs
- IsolatedStorageException.cs
- AtomServiceDocumentSerializer.cs