Пример #1
0
 public WorkspaceController(
     ILogger <WorkspaceController> logger,
     IHubContext <AppHub, IHubEvent> hub,
     WorkspaceValidator validator,
     IHypervisorService podService,
     WorkspaceService workspaceService
     ) : base(logger, hub, validator)
 {
     _pod = podService;
     _svc = workspaceService;
 }
Пример #2
0
 public TemplateController(
     ILogger <AdminController> logger,
     IHubContext <AppHub, IHubEvent> hub,
     TemplateValidator validator,
     TemplateService templateService,
     IHypervisorService podService
     ) : base(logger, hub, validator)
 {
     _svc = templateService;
     _pod = podService;
 }
Пример #3
0
 public TemplateController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     TemplateService templateService,
     IHypervisorService podService,
     IHubContext <TopologyHub, ITopoEvent> hub
     ) : base(logger, identityResolver)
 {
     _templateService = templateService;
     _pod             = podService;
     _hub             = hub;
 }
Пример #4
0
 public EngineController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     EngineService engineService,
     IHypervisorService podService,
     IHubContext <TopologyHub, ITopoEvent> hub
     ) : base(logger, identityResolver)
 {
     _engineService = engineService;
     _pod           = podService;
     _hub           = hub;
 }
Пример #5
0
 public WorkspaceController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     WorkspaceService workspaceService,
     IHypervisorService podService,
     IHubContext <TopologyHub, ITopoEvent> hub
     ) : base(logger, identityResolver)
 {
     _pod = podService;
     _workspaceService = workspaceService;
     _hub = hub;
 }
Пример #6
0
        public TemplateService(
            ITemplateStore templateStore,
            IHypervisorService podService,
            ILogger <TemplateService> logger,
            IMapper mapper,
            CoreOptions options
            ) : base(logger, mapper, options)
        {
            _store = templateStore;

            _pod = podService;
        }
Пример #7
0
 public WorkspaceService(
     IWorkspaceStore workspaceStore,
     IGamespaceStore gamespaceStore,
     IHypervisorService podService,
     ILogger <WorkspaceService> logger,
     IMapper mapper,
     CoreOptions options
     ) : base(logger, mapper, options)
 {
     _store          = workspaceStore;
     _gamespaceStore = gamespaceStore;
     _pod            = podService;
 }
Пример #8
0
 public GamespaceController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     GamespaceService gamespaceService,
     IHypervisorService podService,
     IHubContext <TopologyHub, ITopoEvent> hub,
     IDistributedCache cache
     ) : base(logger, identityResolver)
 {
     _gamespaceService = gamespaceService;
     _pod   = podService;
     _hub   = hub;
     _cache = cache;
 }
Пример #9
0
 public JanitorService(
     ILogger <JanitorService> logger,
     CoreOptions options,
     IHypervisorService pod,
     IWorkspaceStore workspaceStore,
     IGamespaceStore gamespaceStore
     )
 {
     _logger         = logger;
     _options        = options;
     _pod            = pod;
     _workspaceStore = workspaceStore;
     _gamespaceStore = gamespaceStore;
 }
Пример #10
0
 public WorkspaceService(
     IWorkspaceStore workspaceStore,
     IGamespaceStore gamespaceStore,
     IHypervisorService podService,
     ILogger <WorkspaceService> logger,
     IMapper mapper,
     CoreOptions options,
     IIdentityResolver identityResolver
     ) : base(logger, mapper, options, identityResolver)
 {
     _workspaceStore = workspaceStore;
     _gamespaceStore = gamespaceStore;
     _pod            = podService;
 }
Пример #11
0
 public VmController(
     ILogger <AdminController> logger,
     IHubContext <AppHub, IHubEvent> hub,
     VmValidator validator,
     TemplateService templateService,
     UserService userService,
     IHypervisorService podService,
     CoreOptions options
     ) : base(logger, hub, validator)
 {
     _templateService = templateService;
     _userService     = userService;
     _pod             = podService;
     _options         = options;
 }
Пример #12
0
        public TemplateService(
            ITemplateStore templateStore,
            IWorkspaceStore workspaceStore,
            IHypervisorService podService,
            ILogger <TemplateService> logger,
            IMapper mapper,
            CoreOptions options,
            IIdentityResolver identityResolver
            ) : base(logger, mapper, options, identityResolver)
        {
            _templateStore = templateStore;

            _workspaceStore = workspaceStore;

            _pod = podService;
        }
Пример #13
0
 public VmController(
     ILogger <AdminController> logger,
     IIdentityResolver identityResolver,
     TemplateService templateService,
     WorkspaceService workspaceService,
     IHubContext <TopologyHub, ITopoEvent> hub,
     UserService userService,
     IHypervisorService podService,
     CoreOptions options
     ) : base(logger, identityResolver)
 {
     _templateService  = templateService;
     _workspaceService = workspaceService;
     _userService      = userService;
     _pod     = podService;
     _hub     = hub;
     _options = options;
 }
Пример #14
0
        public GamespaceService(
            ILogger <GamespaceService> logger,
            IMapper mapper,
            CoreOptions options,
            IHypervisorService podService,
            IGamespaceStore gamespaceStore,
            IWorkspaceStore workspaceStore,
            ILockService lockService,
            IDistributedCache distributedCache

            ) : base(logger, mapper, options)
        {
            _pod            = podService;
            _store          = gamespaceStore;
            _workspaceStore = workspaceStore;
            _locker         = lockService;
            _random         = new Random();
            _distCache      = distributedCache;
        }
Пример #15
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)
            };
        }
 public AsyncHypervisorService(IHypervisorService hypervisorService)
 {
     _hypervisorService = hypervisorService;
 }
 public void SetConnectionConfig(ISecureConnectionConfig connectionConfig)
 {
     _connectionConfig  = connectionConfig;
     _hypervisorService = null;
 }