Web Extensibility Download Part 1 - Service Description


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. using System.ServiceModel;
  2. using System.Collections.Generic;
  3.  
  4. namespace Expenses.Service.Contracts
  5. {
  6. [ServiceContract]
  7. public interface IExpenseService
  8. {
  9. [OperationContract]
  10. [FaultContract(typeof(ContractFault))]
  11. void CreateExpense(ExpenseContract request);
  12.  
  13. [OperationContract]
  14. IEnumerable<ExpenseContract> GetExpensesByName(string name);
  15.  
  16. [OperationContract]
  17. [FaultContract(typeof(ContractFault))]
  18. void DeleteExpense(int id);
  19. }
  20.  
  21. public interface IExpenseServiceChannel : IExpenseService, IClientChannel { }
  22. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.