MessageSubscription
interface cAlgo.API Since 5.2
DesktopCLICloud
Represents a message subscription.
Definition
public interface MessageSubscription
Namespace: cAlgo.API · Group: Messages
Examples
var subscription = Messages.Subscribe<string>("Signals", args => Print("Received: {0}", args.Message));
Print("Subscription {0} listens to {1}", subscription.Id, subscription.Subject);
# Not available in Python: subscriptions are created by the generic Messages.Subscribe method
Methods
| Name | Description |
|---|---|
UnsubscribeDesktopCLICloudvoid | Unsubscribes current subscription. |
Properties
| Name | Description |
|---|---|
IdDesktopCLICloudstring | Gets subscription Id. |
SubjectDesktopCLICloudstring | GGets message subject. |