Example #1
0
 public LogStream(IHubContext <MonitorHub> context, MonitorConfig config)
 {
     this.context  = context;
     this.config   = config;
     cs            = ClientSingleton.Create(config.Hostname, config.SymmetricKey);
     cs.OnReceive += Cs_OnReceive;
 }
Example #2
0
        public static ClientSingleton Create(string hostname, string symmetricKey)
        {
            if (instance == null)
            {
                instance = new ClientSingleton(hostname, symmetricKey);
            }

            return(instance);
        }