Subscribe(T) Method

Glimpse API

MessageBroker Subscribe T  Method Glimpse API Documentation
Subscribes the specified action to the Type specified.

Namespace: Glimpse.Core.Extensibility
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

public Guid Subscribe<T>(
	Action<T> action
)
public Guid Subscribe<T>(
	Action<T> action
)

Parameters

action
Type: OnlineSystem Action T 
The action.
Type Parameters

T
Type of the message

Return Value

A subscription Id, which should be retained in order to unsubscribe.

Implements

IMessageBroker Subscribe T (Action T )
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullExceptionThrows an exception if action is null.
See Also