コード例 #1
0
 public Product(Arbinada.GenieLamp.Warehouse.Services.Warehouse.ProductProxy source)
 {
     if (source == null)
     {
         throw new NullReferenceException("Source proxy object cannot be null");
     }
     this.Proxy = source;
 }
コード例 #2
0
 public Product()
 {
     using (ProductServiceClient client = new ProductServiceClient())
     {
         Proxy = client.CreateProduct();
         client.Close();
     }
 }