private static TriggerChannel ParseChannelEnum(StandardTriggerChannel channel)
 {
     switch (channel)
     {
         case StandardTriggerChannel.Primary:
             return Primary;
         case StandardTriggerChannel.Total:
             return Total;
         case StandardTriggerChannel.TrafficIn:
             return TrafficIn;
         case StandardTriggerChannel.TrafficOut:
             return TrafficOut;
         default:
             throw new NotImplementedException($"Handler missing for channel '{channel}'.");
     }
 }
Exemple #2
0
 private TriggerChannel(StandardTriggerChannel channel)
 {
     this.channel = channel;
 }