19 lines
563 B
C#
19 lines
563 B
C#
using MxGateway.Contracts.Proto;
|
|
|
|
namespace MxGateway.Server.Grpc;
|
|
|
|
/// <summary>
|
|
/// Streams MXAccess events to gRPC clients.
|
|
/// </summary>
|
|
public interface IEventStreamService
|
|
{
|
|
/// <summary>
|
|
/// Streams events for the specified session to the caller.
|
|
/// </summary>
|
|
/// <param name="request">Request payload.</param>
|
|
/// <param name="cancellationToken">Token to cancel the asynchronous operation.</param>
|
|
IAsyncEnumerable<MxEvent> StreamEventsAsync(
|
|
StreamEventsRequest request,
|
|
CancellationToken cancellationToken);
|
|
}
|