示例#1
0
        public MessagingServiceAPI(IConfiguration config, HttpClient httpClient)
        {
            string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("MessagingServiceAPI");

            httpClient.BaseAddress = new Uri($"http://{apiHostAndPort}/api");
            _restClient            = RestService.For <IMessagingServiceAPI>(httpClient);
        }
示例#2
0
 public MessageController(IMessagingServiceAPI messagingServiceAPI)
 {
     _messagingServiceAPI = messagingServiceAPI;
 }