Skip to content

Commit be6a481

Browse files
committed
Add OnMessageBytes
1 parent 1d74ee1 commit be6a481

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/ServiceStack.Interfaces/Redis/IRedisSubscription.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public interface IRedisSubscription
2020
/// </summary>
2121
Action<string, string> OnMessage { get; set; }
2222

23+
/// <summary>
24+
/// Registered handler called when each message is received
25+
/// </summary>
26+
Action<string, byte[]> OnMessageBytes { get; set; }
27+
2328
/// <summary>
2429
/// Registered handler called when each channel is unsubscribed
2530
/// </summary>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@model HelloResponse
2+
3+
<p>View Page for <a href="/throw">/throw</a> API</p>
4+
5+
<h1>@Model</h1>
6+
7+
<h3>IsError: @IsError</h3>
8+
9+
<h3>GetErrorStatus(): @GetErrorStatus()</h3>
10+
11+
@if (RenderErrorIfAny()) { return; }

0 commit comments

Comments
 (0)