コード例 #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
ファイル: WorkspaceService.cs プロジェクト: ddieruf/TopoMojo
 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
ファイル: VmController.cs プロジェクト: cmu-sei/TopoMojo.Api
 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
ファイル: VmController.cs プロジェクト: ddieruf/TopoMojo
 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)
            };
        }
コード例 #16
0
 public AsyncHypervisorService(IHypervisorService hypervisorService)
 {
     _hypervisorService = hypervisorService;
 }
コード例 #17
0
 public void SetConnectionConfig(ISecureConnectionConfig connectionConfig)
 {
     _connectionConfig  = connectionConfig;
     _hypervisorService = null;
 }