コード例 #1
0
 // 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;
 }
コード例 #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;
 }
コード例 #3
0
 // 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);
 }