示例#1
0
 public MyService(IMyOtherService myOtherService)
 {
     _myOtherService = myOtherService;
 }
示例#2
0
 public MyService(IMyOtherService other)
 {
 }
示例#3
0
 public Counter(IMyOtherService myOtherService)
 {
     Console.WriteLine("Counter.Counter");
     _myOtherService = myOtherService;
 }
示例#4
0
 public MyService(IMyOtherService otherService, HttpClient httpClient)
 {
     _otherService = otherService;
     _httpClient   = httpClient;
 }
示例#5
0
 public MyService(IMyOtherService other)
 {
     this._other = other;
 }
示例#6
0
 public MyService(IMyOtherService otherService)
 {
     _otherService = otherService;
 }
示例#7
0
 public MyService(IMyOtherService other) => _other = other;
示例#8
0
 public MyService(IMyOtherService other) { }