Пример #1
0
 public static void AddToQueue(string type, string parserType, byte[] message)
 {
     RabbitBusProvider.AddToQueue(new GpsData
     {
         DeviceName      = parserType,
         CreatedDateTime = DateTime.Now,
         Message         = Encoding.UTF8.GetString(message)
     }, parserType);
 }
Пример #2
0
 public static void AddToSubscriber(string parserType, Action <GpsData> dataReceiver)
 {
     RabbitBusProvider.Subscribe(parserType, dataReceiver);
 }