Skip to content

Commit 56b0927

Browse files
author
mtamme
committed
Added support to share data between interceptors.
1 parent 9eb9101 commit 56b0927

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,4 @@ See [here](https://github.com/mtamme/NProxy/blob/master/Documentation/BENCHMARKS
8585

8686
# Copyright
8787

88-
Copyright © Martin Tamme. See LICENSE for details.
89-
90-
===
91-
92-
![Powered by ReSharper](http://www.jetbrains.com/resharper/img/rs179x67.gif "Powered by ReSharper")
88+
Copyright © Martin Tamme. See LICENSE for details.

Source/Main/NProxy.Core/Interceptors/IInvocationContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public interface IInvocationContext
3838
/// </summary>
3939
object[] Parameters { get; }
4040

41+
/// <summary>
42+
/// Gets or sets the data object associated with the invocation.
43+
/// </summary>
44+
object Data { get; set; }
45+
4146
/// <summary>
4247
/// Proceed to the next interceptor in the interceptor chain.
4348
/// </summary>

Source/Main/NProxy.Core/Interceptors/InvocationContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public object[] Parameters
112112
get { return _parameters; }
113113
}
114114

115+
/// <inheritdoc/>
116+
public object Data { get; set; }
117+
115118
/// <inheritdoc/>
116119
public object Proceed()
117120
{

0 commit comments

Comments
 (0)