private IOptions <ToDoItemsServiceOptions> GetOptions()
        {
            var options = new ToDoItemsServiceOptions()
            {
                BaseUrl = "http://baseUrl"
            };

            return(Options.Create(options));
        }
Beispiel #2
0
 public ToDoItemsService(HttpClient httpClient, IOptions <ToDoItemsServiceOptions> toDoItemsServiceOptions, ILogger <ToDoItemsService> logger)
 {
     this.httpClient = httpClient;
     this.toDoItemsServiceOptions = toDoItemsServiceOptions.Value;
     this.logger = logger;
 }