Interface ICallCollection
The stateful call collection interface.
Inherited Members
Namespace: Microsoft.Graph.Communications.Calls
Assembly: Microsoft.Graph.Communications.Calls.dll
Syntax
public interface ICallCollection : IResourceCollection<ICallCollection, ICall, Call>, IResourceCollection<ICall, Call>, IResourceCollection, IResourceBase, IDisposable, IReadOnlyCollection<ICall>, IEnumerable<ICall>, IEnumerable
Methods
AddAsync(Call, IMediaSession, Guid, CancellationToken)
Create a new call and add to the collection.
Declaration
Task<ICall> AddAsync(Call resource, IMediaSession mediaSession = null, Guid scenarioId = default(Guid), CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
Call | resource | The call resource to be added. |
IMediaSession | mediaSession | The media session object, if any. This is valid only for application hosted media scenarios. |
Guid | scenarioId | The scenario identitifer. This parameter should be used for tracking scenarios across multiple calls. Automatically generated by the SDK if not provided. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<ICall> | The ICall that has been created. This call has not yet been established and those notifications will fire on ICall.OnUpdated |
Events
OnIncoming
The incoming call event. This event is triggered when a new call is being received by the bot.
Declaration
event CollectionEventHandler<ICallCollection, ICall> OnIncoming
Event Type
Type | Description |
---|---|
CollectionEventHandler<ICallCollection, ICall> |