Infront Data Manager Connect Client (.NET)

Subscribe News Broadcast

To subscribe the news broadcast use the following code:

using System;
using Gevasys.DataCore.Configuration;
using Gevasys.DataCore.Consumer.Manager;
namespace Examples
{
class SubscribeNewsBroadcast
{
public void Main()
{
// initialize DMC
ConfigurationHelper.Initialize();
// this client will recieve updates
SamplePushClient pushClient = new SamplePushClient("subscribe-test");
//Create a streaming consumer store.
ConsumerStore streamingStore = ConfigurationHelper.CreateConsumer(pushClient);
//Subscribe the news broadcast
streamingStore.SubscribeNewsBroadcast();
// news will be received in the pushClient instance
//Unsubscribe the news broadcast.
streamingStore.UnsubscribeNewsBroadcast();
}
}
}

Note: Example available in samples folder in Data Manager Connect - Client Distribution".

Gevasys.DataCore
Definition: BinaryUpstreamClient.cs:5
Gevasys.DataCore.Configuration
Definition: ClassFactory.cs:17
Gevasys.DataCore.Consumer.Manager
Definition: ConsumerStore.cs:16
Gevasys
Definition: BinaryUpstreamClient.cs:5
Gevasys.DataCore.Consumer
Definition: ConsumerStore.cs:16
Examples
Definition: apiinitialize.cs:11

Copyright (C) 2021 Infront Financial Technology GmbH
Mainzer Landstrasse 178 – 190
60327 Frankfurt am Main
Infront Data Manager Connect V4.1