예제 #1
0
        public virtual void SendSyncSLAErrorResponse(IHttpRequest request, IHttpResponse response, HystrixEventType hystrixEvent)
        {
            Type responseType  = EndpointHost.Config.MetadataMap[ServicePath].GetResponseTypeByOpName(request.OperationName);
            var  errorResponse = ErrorUtils.CreateSLAErrorResponse(hystrixEvent, responseType);

            response.WriteToResponse(request, errorResponse);
        }