using MxGateway.Contracts.Proto;
namespace MxGateway.Server.Grpc;
///
/// Streams MXAccess events to gRPC clients.
///
public interface IEventStreamService
{
///
/// Streams events for the specified session to the caller.
///
/// Request payload.
/// Token to cancel the asynchronous operation.
IAsyncEnumerable StreamEventsAsync(
StreamEventsRequest request,
CancellationToken cancellationToken);
}