コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }