Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling for ASP.NET IoC lifetime when calling from outside an…
… ASP.NET request. References #39
- Loading branch information
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (c) 2014, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
using System; | ||
using System.Runtime.Serialization; | ||
using React.Exceptions; | ||
|
||
namespace React.Web.Exceptions | ||
{ | ||
[Serializable] | ||
public class ReactAspNetException : ReactException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ReactAspNetException"/> class. | ||
/// </summary> | ||
/// <param name="message">The message that describes the error.</param> | ||
public ReactAspNetException(string message) : base(message) { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ReactAspNetException"/> class. | ||
/// </summary> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param> | ||
public ReactAspNetException(string message, Exception innerException) | ||
: base(message, innerException) { } | ||
|
||
/// <summary> | ||
/// Used by deserialization | ||
/// </summary> | ||
protected ReactAspNetException(SerializationInfo info, StreamingContext context) | ||
: base(info, context) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters