Esempio n. 1
0
 public ProductEntity GetProductRequest()
 {
     if (realSubject == null)
     {
         validationMessage = "Authentication Failed";
     }
     return(realSubject.GetProductRequest());
 }
Esempio n. 2
0
 public ProductEntity GetProductRequest()
 {
     // A virtual proxy creates the object only on its first method call i.e On demand
     if (realSubject == null)
     {
         realSubject = new ProductRealSubject();
     }
     return(realSubject.GetProductRequest());
 }