Skip to content

Commit

Permalink
Fix orleans chatroom sample to match documentation (#6988)
Browse files Browse the repository at this point in the history
  • Loading branch information
reagcz authored Oct 17, 2024
1 parent fc205fd commit 7322f3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions orleans/ChatRoom/ChatRoom.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ static async Task<ClientContext> JoinChannel(
await AnsiConsole.Status().StartAsync("Joining channel...", async ctx =>
{
var room = context.Client.GetGrain<IChannelGrain>(context.CurrentChannel);
await room.Join(context.UserName!);
var streamId = StreamId.Create("ChatRoom", context.CurrentChannel!);
var streamId = await room.Join(context.UserName!);
var stream =
context.Client
.GetStreamProvider("chat")
Expand Down Expand Up @@ -267,8 +266,7 @@ static async Task<ClientContext> LeaveChannel(ClientContext context)
await AnsiConsole.Status().StartAsync("Leaving channel...", async ctx =>
{
var room = context.Client.GetGrain<IChannelGrain>(context.CurrentChannel);
await room.Leave(context.UserName!);
var streamId = StreamId.Create("ChatRoom", context.CurrentChannel!);
var streamId = await room.Leave(context.UserName!);
var stream =
context.Client
.GetStreamProvider("chat")
Expand Down

0 comments on commit 7322f3c

Please sign in to comment.