Exemple #1
0
 public ChatHub(MagicOnionActivitySources magiconionActivity, BackendActivitySources backendActivity)
 {
     this.magiconionActivity = magiconionActivity.Current;
     this.mysqlActivity      = backendActivity.Get("mysql");
     this.redisActivity      = backendActivity.Get("redis");
 }
Exemple #2
0
 public ChatService(ILogger <ChatService> logger, BackendActivitySources backendActivity)
 {
     this.mysqlActivitySource = backendActivity.Get("mysql");
     this.logger = logger;
 }