Example #1
0
 public override void Request()
 {
     // this is a virtual proxy - we use lazy instantiation
     if (_realSubject == null)
     {
         _realSubject = new RealSubject();
     }
     _realSubject.Request();
 }
Example #2
0
 public Proxy(RealSubject realSubject)
 {
     this._realSubject = realSubject;
 }