public Services(IOptions <AppSettings> settings, AppLog log, IMohsenRestClient restClient) { _log = log; _restClient = restClient; _settings = settings.Value; _restClient.BaseURL = _settings.ServiceUrl; _restClient.Username = _settings.ServiceUsername; _restClient.Password = _settings.ServicePassword; _restClient.CustomHeaderList = _restClient.CustomHeaderList ?? new List <RequestHeader>(); }
public AuthService(IMohsenRestClient restClient) { this.restClient = restClient; }
public AppLogger(IMohsenRestClient restClient) { _restClient = restClient; }