Exemplo n.º 1
0
        public static void AddApiGateway(this IServiceCollection services)
        {
            var apis = new ApiOrchestrator();

            services.AddTransient <IApiOrchestrator>(x => apis);
            services.AddHttpClient <IHttpService, HttpService>();

            services.AddControllers();
        }
Exemplo n.º 2
0
 public WindowsApiService()
 {
     InitializeComponent();
     _apiOrchestrator = new ApiOrchestrator();
 }