Return to Snippet

Revision: 36924
at November 30, 2010 23:11 by RichardCustance


Initial Code
using System.ServiceModel;
using System.Collections.Generic;

namespace Expenses.Service.Contracts
{
    [ServiceContract]
    public interface IExpenseService
    {
        [OperationContract]
        [FaultContract(typeof(ContractFault))]
        void CreateExpense(ExpenseContract request);

        [OperationContract]
        IEnumerable<ExpenseContract> GetExpensesByName(string name);

        [OperationContract]
        [FaultContract(typeof(ContractFault))]
        void DeleteExpense(int id);
    }

    public interface IExpenseServiceChannel : IExpenseService, IClientChannel { }
}

Initial URL

                                

Initial Description

                                

Initial Title
Web Extensibility Download Part 1 - Service Description

Initial Tags
web

Initial Language
C#