public static void HandleException(Exception ex) { if(TransportFactory.OnException != null) { TransportFactory.OnException(ex); } }