public ClientServerCommunicationController() { this.SystemInfo = new SystemInfo(); this.CipherManager = new CipherManagerController(); this.Events = new Dictionary <string, Func <string> >(); Events.Add("Connect", () => { return(ConnectContent()); }); }
public MainController() { this.CipherManager = new CipherManagerController(); this.infoRepository = new SystemInfoRepository(); int num = 0; TimerCallback tm = new TimerCallback((s) => { this.Send?.Invoke("Get", "Request"); }); Timer timer = new Timer(tm, num, 0, 300000); }