/// <summary>Handler, called when the get custom error.</summary> /// /// <param name="errorStatus">The error status.</param> /// /// <returns>The custom error handler.</returns> public INServiceKitHttpHandler GetCustomErrorHandler(HttpStatusCode errorStatus) { INServiceKitHttpHandler httpHandler = null; if (CustomHttpHandlers != null) { CustomHttpHandlers.TryGetValue(errorStatus, out httpHandler); } return(httpHandler ?? GlobalHtmlErrorHttpHandler); }
/// <summary>Initializes a new instance of the NServiceKit.NServiceKitHttpHandler class.</summary> /// /// <param name="NServiceKitHandler">The service kit handler.</param> public NServiceKitHttpHandler(INServiceKitHttpHandler NServiceKitHandler) { this.NServiceKitHandler = NServiceKitHandler; }