Beispiel #1
0
        public static void BusinessDelegate()
        {
            BusinessDelegate businessDelegate = new BusinessDelegate();

            businessDelegate.SetServiceType("One");

            Client client = new Client(businessDelegate);

            client.DoTask();

            businessDelegate.SetServiceType("Two");
            client.DoTask();
        }
Beispiel #2
0
 public Client(BusinessDelegate businessService)
 {
     this.BusinessService = businessService;
 }