public Task Transmit(CameraEvent cameraEvent, CancellationToken cancellationToken)
 {
     Console.ForegroundColor = ConsoleColor;
     Console.WriteLine(cameraEvent.ToJson());
     Console.ResetColor();
     return Task.CompletedTask;
 }
        public static Message CreateMessage(CameraEvent cameraEvent)
        {
            var msg = new Message(Encoding.UTF8.GetBytes(cameraEvent.ToJson()));

            msg.ContentEncoding = "UTF-8";
            msg.ContentType     = "application/json";
            return(msg);
        }