ServiceAdaptor.cs 492 B

12345678910111213141516171819
  1. using Microsoft.AspNetCore.Hosting;
  2. using Newtonsoft.Json.Linq;
  3. using ServiceAdaptor.NetCore.Client;
  4. using Vit.Extensions;
  5. namespace ServiceAdaptor.NetCore.Sers
  6. {
  7. public class ServiceAdaptor : IServiceAdaptor
  8. {
  9. public IWebHostBuilder InitWebHostBuilder(IWebHostBuilder builder, JObject config, out IApiClient apiClient)
  10. {
  11. apiClient = new ApiClient();
  12. builder.UseSerslot();
  13. return builder;
  14. }
  15. }
  16. }