public StmHttpMicroServiceServerMiddleware(RequestDelegate next, ServiceHandleMap serviceHandleMap, HttpExceptionPolicy policyItemBundle)
 {
     _next                      = next;
     _serviceHandleMap          = serviceHandleMap;
     _exceptionPolicyItemBundle = policyItemBundle;
     _exceptionPolicy           = new ExceptionPolicy <HttpContext, VOID>()
                                  .Import(_exceptionPolicyItemBundle);
 }
        public static IApplicationBuilder UseStmHttpMicroServiceServer(
            this IApplicationBuilder app,
            ServiceHandleMap serviceHandleMap,
            ExceptionPolicyItemBundle <HttpContext, VOID> policyItemBundle)
        {
            app.UseMiddleware <StmHttpMicroServiceServerMiddleware>(serviceHandleMap, policyItemBundle);

            return(app);
        }
 public StmHttpMicroServiceServerMiddlewareOptionBuilder SetServiceHandleMap(ServiceHandleMap serviceHandleMap)
 {
     this._serviceHandleMap = serviceHandleMap;
     return(this);
 }