public Service(MyTypeA service, MyTypeB serviceB, IConfiguration configuration) { PollerInterval = 1200; //not necessary just for example purpose Default 1000 _pingBackUri = $"{configuration.GetValue<string>(Constants.Configuration.Api.BaseUri)}{configuration.GetValue<string>(Constants.Configuration.Api.PingBackUri)}"; Console.WriteLine($"Service Version:{configuration.GetValue<string>(Constants.Configuration.Service.Version)}"); }
public MyTypeA(MyTypeB service) { _service = service; }