示例#1
0
 public MyClient(SomeService.Factory serviceFactory)
 {
     // Resolve ISomeService using factory method
     // passing runtime parameters
     _myService = serviceFactory("this", "that");
 }
示例#2
0
 public MyClient(SomeService.Factory serviceFactory)
 {
     _myService = serviceFactory("this", "that");
 }