public bool Run(ref ChannelEntryPoints entry) { try { _batteryReporter.EntryPoints = entry; _batteryReporter.Initialize(); } catch (VirtualChannelException e) { //Communication problem _log.Fatal(e.ToString()); return(false); } catch (Ninject.ActivationException e) { _log.Fatal(e.ToString()); return(false); } catch (Exception e) { _log.Fatal(e.ToString()); return(false); } return(true); }
public Client(ChannelEntryPoints entry) { entryPoints = entry; channelInitEventDelegate = VirtualChannelInitEventProc; channelOpenEventDelegate = VirtualChannelOpenEvent; Streams = new Dictionary <int, Stream>(); Listeners = new Dictionary <int, TcpListener>(); }
public static bool VirtualChannelEntry(ref ChannelEntryPoints entry) { //Composition root _instance = NinjectConfig.Instance.Get <Program>(); return(_instance.Run(ref entry)); }
public static bool VirtualChannelEntry(ref ChannelEntryPoints entry) { client = new Client(entry); return(client.VirtualChannelInit()); }