Ejemplo n.º 1
0
        public ExecutionService(IDashboardService dashboardService, IHubContext <DashboardHub> hubContext, StateRequestService stateRequestService)
        {
            Log.Debug("ExecutionService constructor");

            _runspace            = dashboardService.RunspaceFactory;
            _dashboardService    = dashboardService;
            _hubContext          = hubContext;
            _stateRequestService = stateRequestService;
        }
        public PowerShellExecutionService(
            IDashboardService dashboardService,
            IHubContext <DashboardHub> hubContext,
            StateRequestService stateRequestService,
            IMemoryCache memoryCache)
        {
            Log.Debug("ExecutionService constructor");

            _runspace            = dashboardService.RunspaceFactory;
            _dashboardService    = dashboardService;
            _hubContext          = hubContext;
            _stateRequestService = stateRequestService;
            _memoryCache         = memoryCache;
        }
 public RunspaceReference(IUDRunspaceFactory factory, Runspace runspace)
 {
     _factory = factory;
     Runspace = runspace;
 }
 public RunspaceReference(IUDRunspaceFactory factory, Runspace runspace, bool debugRunspace)
 {
     _factory       = factory;
     Runspace       = runspace;
     _debugRunspace = debugRunspace;
 }