示例#1
0
 private void SetBasicStreamer()
 {
     if (Registrar?.IsEtpVersionSupported(EtpVersion.v11) ?? false && Session?.IsSessionOpen == false)
     {
         v11ChannelStreamingHandler.Capabilities.SimpleStreamer = false;
     }
 }
示例#2
0
 protected override void InitializeRegistrarCore()
 {
     if (Registrar.IsEtpVersionSupported(EtpVersion.v11))
     {
         Registrar.Register(new v11.Protocol.ChannelStreaming.ChannelStreamingConsumerHandler());
     }
     if (Registrar.IsEtpVersionSupported(EtpVersion.v12))
     {
         Registrar.Register(new v12.Protocol.ChannelStreaming.ChannelStreamingConsumerHandler());
         Registrar.Register(new v12.Protocol.ChannelSubscribe.ChannelSubscribeCustomerHandler());
     }
 }
示例#3
0
 protected override void InitializeRegistrarCore()
 {
     if (Registrar.IsEtpVersionSupported(EtpVersion.v11))
     {
         Registrar.Register(new v11.Protocol.Store.StoreCustomerHandler());
         Registrar.Register(new v11.Protocol.StoreNotification.StoreNotificationCustomerHandler());
     }
     if (Registrar.IsEtpVersionSupported(EtpVersion.v12))
     {
         Registrar.Register(new v12.Protocol.Store.StoreCustomerHandler());
         Registrar.Register(new v12.Protocol.StoreNotification.StoreNotificationCustomerHandler());
     }
 }
示例#4
0
 protected override void InitializeRegistrarCore()
 {
     if (Registrar.IsEtpVersionSupported(EtpVersion.v11))
     {
         Registrar.Register(new v11.Protocol.Discovery.DiscoveryCustomerHandler());
     }
     if (Registrar.IsEtpVersionSupported(EtpVersion.v12))
     {
         Registrar.Register(new v12.Protocol.Dataspace.DataspaceCustomerHandler());
         Registrar.Register(new v12.Protocol.Discovery.DiscoveryCustomerHandler());
         Registrar.Register(new v12.Protocol.SupportedTypes.SupportedTypesCustomerHandler());
     }
 }
示例#5
0
 protected override void InitializeRegistrarCore()
 {
     // Register protocol handlers
     if (Registrar.IsEtpVersionSupported(EtpVersion.v11))
     {
         Registrar.Register(v11ChannelStreamingHandler);
         //Registrar.Register(new v11.Protocol.ChannelDataFrame.ChannelDataFrameProducerHandler());
     }
     if (Registrar.IsEtpVersionSupported(EtpVersion.v12))
     {
         Registrar.Register(new v12.Protocol.ChannelStreaming.ChannelStreamingProducerHandler());
         //Registrar.Register(new v12.Protocol.ChannelDataFrame.ChannelDataFrameStoreHandler());
         Registrar.Register(new v12.Protocol.ChannelSubscribe.ChannelSubscribeStoreHandler());
     }
 }
示例#6
0
 public override void PrintConsoleOptions()
 {
     Console.WriteLine(" D - Set store primary dataspace name");
     if (Registrar?.IsEtpVersionSupported(EtpVersion.v11) ?? false && Session?.IsSessionOpen == false)
     {
         if (v11ChannelStreamingHandler.Capabilities.SimpleStreamer ?? false)
         {
             Console.WriteLine(" B - Set ETP 1.1 channel streaming to simple streaming");
         }
         else
         {
             Console.WriteLine(" B - Set ETP 1.1 channel streaming to basic streaming");
         }
     }
     Console.WriteLine(" G - Start / stop background channel data generation");
 }