|
//---------------------------------------------------------------------
// <copyright file="IRequestHandler.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
// Provides the interface with the service contract for
// DataWeb services.
// </summary>
//
// @owner mruiz
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.IO;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Web;
/// <summary>
/// This interface declares the service contract for a DataWeb
/// service.
/// </summary>
[ServiceContract]
public interface IRequestHandler
{
/// <summary>Provides an entry point for all requests.</summary>
/// <param name='messageBody'>Incoming message body.</param>
/// <returns>The resulting <see cref="Message"/> for this request.</returns>
[OperationContract]
[WebInvoke(UriTemplate = "*", Method = "*")]
Message ProcessRequestForMessage(Stream messageBody);
}
}
|