public LogStream(IHubContext <MonitorHub> context, MonitorConfig config) { this.context = context; this.config = config; cs = ClientSingleton.Create(config.Hostname, config.SymmetricKey); cs.OnReceive += Cs_OnReceive; }