|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Description;
using System.ServiceModel.Web;
using System.Text;
namespace OrderServiceContract
{
[ServiceContract(Namespace = "OrderServiceContract", SessionMode = SessionMode.Allowed)]
public interface IOrderService
{
[OperationContract]
void StartPurchase();
[OperationContract]
string PlaceOrder(Item item);
[OperationContract]
string MakePayment(decimal amount);
[OperationContract]
string ShipOrder(string address);
[OperationContract]
void EndPurchase();
// TODO: Add your service operations here
}
// Use a data contract as illustrated in the sample below to add composite types to service operations.
[DataContract]
public class Item
{
[DataMember]
public string ItemName { get; set; }
[DataMember]
public decimal Price { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.