Esempio n. 1
0
        public async Task <mds::GetAllOrderStateResponse> GetAll([FromQuery] mds::GetAllRequest request)
        {
            _logger.LogInformation("Executing {Action} {Message}", nameof(GetAll), request);

            if (_interceptor != null)
            {
                await _interceptor.Handle(request).ConfigureAwait(false);
            }

            return(await _service.GetAll(request).ConfigureAwait(false));
        }
Esempio n. 2
0
        public async Task <mds::HelloReply> SayHello([FromQuery] mds::HelloRequest request)
        {
            _logger.LogInformation("Executing {Action} {Message}", nameof(SayHello), request);

            if (_interceptor != null)
            {
                await _interceptor.Handle(request).ConfigureAwait(false);
            }

            return(await _service.SayHello(request).ConfigureAwait(false));
        }
Esempio n. 3
0
        public async Task <mds::LoginResponse> Login([FromBody] mds::LoginRequest request)
        {
            _logger.LogInformation("Executing {Action} {Message}", nameof(Login), request);

            if (_interceptor != null)
            {
                await _interceptor.Handle(request).ConfigureAwait(false);
            }

            return(await _service.Login(request).ConfigureAwait(false));
        }
Esempio n. 4
0
        public async Task <mds::UploadImageResponse> UploadImage([ModelBinder(typeof(CybtansModelBinder))] mds::UploadImageRequest request)
        {
            _logger.LogInformation("Executing {Action}", nameof(UploadImage));

            if (_interceptor != null)
            {
                await _interceptor.Handle(request).ConfigureAwait(false);
            }

            return(await _service.UploadImage(request).ConfigureAwait(false));
        }