Ejemplo n.º 1
0
 public GamespaceController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     GamespaceService gamespaceService,
     IHypervisorService podService,
     IHubContext <TopologyHub, ITopoEvent> hub
     ) : base(logger, identityResolver)
 {
     _gamespaceService = gamespaceService;
     _pod = podService;
     _hub = hub;
 }
Ejemplo n.º 2
0
        public GamespaceController(
            ILogger <AdminController> logger,
            IHubContext <AppHub, IHubEvent> hub,
            GamespaceValidator validator,
            CoreOptions options,
            GamespaceService gamespaceService,
            IHypervisorService podService,
            IDistributedCache distributedCache
            ) : base(logger, hub, validator)
        {
            _svc       = gamespaceService;
            _pod       = podService;
            _distCache = distributedCache;
            _options   = options;

            _cacheOpts = new DistributedCacheEntryOptions
            {
                SlidingExpiration = new TimeSpan(0, 0, 180)
            };
        }