private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     roomConnection = e.RoomConnection;
     roomConnection.Subscribe <RoomJoiningData>(next: UserJoiningHandle);
     observable.Subscribe <JoinUserToRoomCommand>(JoinUserToRoomHandle);
     observable.Subscribe <DenyUserRoomJoiningCommand>(DenyUserRoomJoiningHandle);
 }
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     myId           = e.MyId;
     roomConnection = e.RoomConnection;
     roomConnection.Subscribe <MessagingStartingData>(next: MessagingStartingHandle);
     roomConnection.Subscribe <MessagingStartedData>(next: MessagingStartedHandle);
     observable.Subscribe <StartMessagingCommand>(StartMessaging);
 }
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     myId           = e.MyId;
     roomConnection = e.RoomConnection;
     roomConnection.Subscribe <RoomJoinedData>(next: AcceptMyJoiningHandle);
     roomConnection.Subscribe <RoomRejectedData>(next: DeclineMyJoiningHandle);
     observable.Subscribe <JoinMeToRoomCommand>(JoinMeToRoomHandle);
 }
Exemplo n.º 4
0
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     roomConnection = e.RoomConnection;
 }
Exemplo n.º 5
0
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     roomConnection = e.RoomConnection;
     observable.Subscribe <RefreshAllRoomsCommand>(RefreshAllRoomsHandler);
 }
Exemplo n.º 6
0
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     roomConnection = e.RoomConnection;
     observable.Subscribe <StartNewRoomCommand>(StartHandle);
 }
Exemplo n.º 7
0
 private void ConnectionHandler_OnConnected(object sender, StartRoomConnectionEventArgs e)
 {
     e.RoomConnection.Subscribe <UserIPData>(next: UserIPDataHandler);
     observable.Subscribe <SendMessageCommand>(SendMessageHandle);
 }