-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #746 from Cysharp/feature/StreamingHubDiagnosticHa…
…ndler [Preview] Introduce IStreamingHubDiagnosticHandler
- Loading branch information
Showing
110 changed files
with
1,467 additions
and
19 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
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
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
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
43 changes: 43 additions & 0 deletions
43
...lient.Unity/Assets/Scripts/MagicOnion/MagicOnion.Client/IStreamingHubDiagnosticHandler.cs
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,43 @@ | ||
using System; | ||
|
||
namespace MagicOnion.Client | ||
{ | ||
/// <summary> | ||
/// [Preview] The interface of the handler for StreamingHub diagnostics. This API may change in the future. | ||
/// </summary> | ||
public interface IStreamingHubDiagnosticHandler | ||
{ | ||
/// <summary> | ||
/// The callback method at the beginning of a Hub method request. This API may change in the future. | ||
/// </summary> | ||
/// <typeparam name="THub"></typeparam> | ||
/// <typeparam name="TRequest"></typeparam> | ||
/// <param name="hubInstance"></param> | ||
/// <param name="requestId"></param> | ||
/// <param name="methodName"></param> | ||
/// <param name="request"></param> | ||
/// <param name="isFireAndForget"></param> | ||
void OnRequestBegin<THub, TRequest>(THub hubInstance, Guid requestId, string methodName, TRequest request, bool isFireAndForget); | ||
|
||
/// <summary> | ||
/// [Preview] The callback method at the end of a Hub method request. This API may change in the future. | ||
/// </summary> | ||
/// <typeparam name="THub"></typeparam> | ||
/// <typeparam name="TResponse"></typeparam> | ||
/// <param name="hubInstance"></param> | ||
/// <param name="requestId"></param> | ||
/// <param name="methodName"></param> | ||
/// <param name="response"></param> | ||
void OnRequestEnd<THub, TResponse>(THub hubInstance, Guid requestId, string methodName, TResponse response); | ||
|
||
/// <summary> | ||
/// [Preview] The callback method when a method of HubReceiver is invoked. This API may change in the future. | ||
/// </summary> | ||
/// <typeparam name="THub"></typeparam> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="hubInstance"></param> | ||
/// <param name="methodName"></param> | ||
/// <param name="value"></param> | ||
void OnBroadcastEvent<THub, T>(THub hubInstance, string methodName, T value); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
....Unity/Assets/Scripts/MagicOnion/MagicOnion.Client/IStreamingHubDiagnosticHandler.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.