Skip to content

Commit

Permalink
Fix orleans chatroom sample to match documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
reagcz committed Sep 16, 2024
1 parent 4231a56 commit fa5304b
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 fa5304b

Please sign in to comment.