forked from hprose/hprose-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* * | ||
* hprose service class for C#. * | ||
* * | ||
* LastModified: Jan 23, 2016 * | ||
* LastModified: Dec 1, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -609,7 +609,7 @@ protected MemoryStream DoInvoke(MemoryStream istream, HproseMethods methods, Hpr | |
arguments = new object[0]; | ||
} | ||
if (OnBeforeInvoke != null) { | ||
OnBeforeInvoke(name, arguments, byRef, context); | ||
OnBeforeInvoke(name, ref arguments, byRef, context); | ||
} | ||
if (remoteMethod == null) { | ||
args = arguments; | ||
|
@@ -637,7 +637,7 @@ protected MemoryStream DoInvoke(MemoryStream istream, HproseMethods methods, Hpr | |
Array.Copy(args, 0, arguments, 0, count); | ||
} | ||
if (OnAfterInvoke != null) { | ||
OnAfterInvoke(name, arguments, byRef, result, context); | ||
OnAfterInvoke(name, ref arguments, byRef, ref result, context); | ||
} | ||
if (remoteMethod.mode == HproseResultMode.RawWithEndTag) { | ||
data.Write((byte[])result, 0, ((byte[])result).Length); | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* * | ||
* hprose service event for C#. * | ||
* * | ||
* LastModified: May 30, 2015 * | ||
* LastModified: Dec 1, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -21,8 +21,8 @@ | |
using Hprose.Common; | ||
|
||
namespace Hprose.Server { | ||
public delegate void BeforeInvokeEvent(string name, object[] args, bool byRef, HproseContext context); | ||
public delegate void AfterInvokeEvent(string name, object[] args, bool byRef, object result, HproseContext context); | ||
public delegate void BeforeInvokeEvent(string name, ref object[] args, bool byRef, HproseContext context); | ||
public delegate void AfterInvokeEvent(string name, ref object[] args, bool byRef, ref object result, HproseContext context); | ||
public delegate void SendHeaderEvent(HproseContext context); | ||
public delegate void SendErrorEvent(Exception e, HproseContext context); | ||
} | ||
|