Skip to content

IEventSharingPolicy Interface

The transmitter's own answer to SSF 1.0 Section 9.2: a subject added to a stream is a statement of the receiver's INTEREST, never an entitlement, and the transmitter "SHOULD validate that they are permitted to share the information contained within an event with the Event Receiver before transmitting". The mechanism is deliberately outside the specification's scope - and outside this package's: the host implements it over whatever authorization model it has, and the dispatcher asks it about every otherwise-matching delivery, last.

C#
public interface IEventSharingPolicy

Methods

IEventSharingPolicy.IsSharingPermittedAsync(StreamState, SecurityEventDescriptor, CancellationToken) Method

Decides whether the information in one event may be shared with one stream's receiver.

C#
System.Threading.Tasks.Task<bool> IsSharingPermittedAsync(Abblix.SharedSignals.Transmitter.StreamState stream, Abblix.SharedSignals.Transmitter.SecurityEventDescriptor descriptor, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

stream StreamState

The stream the event would be delivered over.

descriptor SecurityEventDescriptor

The event as the application stated it.

cancellationToken System.Threading.CancellationToken

Cancels I/O the decision performs.

Returns

System.Threading.Tasks.Task<System.Boolean>
True to let the delivery proceed; false to withhold it, silently - a receiver learns nothing from what does not arrive (SSF 1.0 Section 9.2).