Пример #1
0
        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);
        }
Пример #2
0
 public static Inverters Build(GoodWeSettings settings,
                               Observe observe,
                               Func <DateTimeOffset> utcDateTimeNow)
 => new GoodWeRepository(new ResilientRestClient(settings.RequireValidSslCertificate, observe.OnRetry).Execute, utcDateTimeNow, settings, observe);