public MyService(IMyOtherService myOtherService) { _myOtherService = myOtherService; }
public MyService(IMyOtherService other) { }
public Counter(IMyOtherService myOtherService) { Console.WriteLine("Counter.Counter"); _myOtherService = myOtherService; }
public MyService(IMyOtherService otherService, HttpClient httpClient) { _otherService = otherService; _httpClient = httpClient; }
public MyService(IMyOtherService other) { this._other = other; }
public MyService(IMyOtherService otherService) { _otherService = otherService; }
public MyService(IMyOtherService other) => _other = other;