Class Room
Represents a high level object room connected to the join and monitoring services
Syntax
public class Room : BaseRoom
Properties
ConnectedParticipants
The collection of participants currently connected to the Room. This data comes from IRoomMonitoring
Declaration
public IReadOnlyCollection<IParticipant> ConnectedParticipants { get; }
Property Value
Methods
JoinAsync(IRetryPolicy, CancellationToken)
Makes the local participant Join this room instance
The retry policy to execute the join
Cancellation token that will try to cancel the operation
Declaration
public async Task JoinAsync(IRetryPolicy retryPolicy, CancellationToken cancellationToken)
Parameters
Returns
LeaveAsync()
Declaration
public async Task LeaveAsync()
Returns
StartMonitoringAsync(IRetryPolicy, CancellationToken)
Start monitoring the room for connected participants
The retry policy to execute the join
Cancellation token that will try to cancel the operation
Declaration
public async Task StartMonitoringAsync(IRetryPolicy retryPolicy, CancellationToken cancellationToken)
Parameters
Returns
StopMonitoringAsync(IRetryPolicy, CancellationToken)
Stop monitoring the room for connected participants
The retry policy to execute the join
Cancellation token that will try to cancel the operation
Declaration
public async Task StopMonitoringAsync(IRetryPolicy retryPolicy, CancellationToken cancellationToken)
Parameters
Returns
Events
ParticipantAdded
Calls the methods in its invocation list when a participant is added to the list of ConnectedParticipants
Declaration
public event Action<IParticipant> ParticipantAdded
Event Type
ParticipantRemoved
Calls the methods in its invocation list when a participant is removed to the list of ConnectedParticipants
Declaration
public event Action<IParticipant> ParticipantRemoved
Event Type
Extension Methods