public ClientController(ICreateClientService createClientService, ILogger <IClientController> logger, IUpdateClientService updateClientService, IListClientService listClientService)
 {
     _createClientService = createClientService;
     _logger = logger;
     _updateClientService = updateClientService;
     _listClientService   = listClientService;
 }
示例#2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            this.UpdateClientService = app.ApplicationServices.GetService <IUpdateClientService>();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
                endpoints.MapHub <AirportHub>("/airport");
            });
        }