IMobileServiceEventManager.Subscribe<T>(Action<T>) Method

Definition

Subscribes to event notifications.

public IDisposable Subscribe<T> (Action<T> next) where T : class, Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent;
abstract member Subscribe : Action<'T (requires 'T : null and 'T :> Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent)> -> IDisposable (requires 'T : null and 'T :> Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent)
Public Function Subscribe(Of T As {Class, IMobileServiceEvent}) (next As Action(Of T)) As IDisposable

Type Parameters

T

The base type of event to filter notifications by.

Parameters

next
Action<T>

The delegate to be invoked to handle events.

Returns

An IDisposable instance representing the subscription.

Applies to