// private readonly IDictionary<string, (ITubeInlet sender, ITubeOutlet receiver)> _waitReconnectList = new ConcurrentDictionary<string, (ITubeInlet, ITubeOutlet)>();
 public GwentServerService(IHubContext <GwentHub> hub, GwentDatabaseService databaseService)
 {
     //Container = container;
     DatabaseService = databaseService;
     _gwentMatchs    = new GwentMatchs(() => hub);
     _hub            = hub;
 }
Beispiel #2
0
 // private readonly IDictionary<string, (ITubeInlet sender, ITubeOutlet receiver)> _waitReconnectList = new ConcurrentDictionary<string, (ITubeInlet, ITubeOutlet)>();
 public GwentServerService(IHubContext <GwentHub> hub, GwentDatabaseService databaseService, IServiceProvider container)
 {
     //Container = container;
     _databaseService = databaseService;
     _gwentMatchs     = new GwentMatchs(() => hub, (GwentCardTypeService)container.GetService(typeof(GwentCardTypeService)), this);
     _hub             = hub;
 }
 // private readonly IDictionary<string, (ITubeInlet sender, ITubeOutlet receiver)> _waitReconnectList = new ConcurrentDictionary<string, (ITubeInlet, ITubeOutlet)>();
 public GwentServerService(IHubContext <GwentHub> hub, GwentDatabaseService databaseService, IServiceProvider container, IWebHostEnvironment env)
 {
     //Container = container;
     _databaseService = databaseService;
     _gwentMatchs     = new GwentMatchs(() => hub, (GwentCardTypeService)container.GetService(typeof(GwentCardTypeService)), this);
     _hub             = hub;
     _env             = env;
     ResultList       = _databaseService.GetAllGameResults(50);
 }