public GoodWeRepository(Func <Uri, dynamic, Data, Task <IRestResponse> > clientExecutionFactory, Func <DateTimeOffset> utcDateTimeNowProvider, GoodWeSettings settings, Observe observe) { _clientExecutionFactory = clientExecutionFactory; _observe = observe; _authenticator = new Authenticator(settings, utcDateTimeNowProvider, clientExecutionFactory, observe.LogAuthentication); }
public static Inverters Build(GoodWeSettings settings, Observe observe, Func <DateTimeOffset> utcDateTimeNow) => new GoodWeRepository(new ResilientRestClient(settings.RequireValidSslCertificate, observe.OnRetry).Execute, utcDateTimeNow, settings, observe);