예제 #1
0
 public Handler(
     IVsphereService vsphereService,
     IVmService vmService)
 {
     _vsphereService = vsphereService;
     _vmService      = vmService;
 }
예제 #2
0
 public Handler(
     IVsphereService vsphereService,
     IVmService vmService,
     IMapper mapper,
     IPlayerService playerService,
     IPrincipal principal,
     IPermissionsService permissionsService) :
     base(mapper, vsphereService, playerService, principal, permissionsService, vmService)
 {
     _vsphereService = vsphereService;
 }
예제 #3
0
 public Handler(
     IVsphereService vsphereService,
     IPlayerService playerService,
     VmContext dbContext,
     IPermissionsService permissionsService)
 {
     _vsphereService     = vsphereService;
     _playerService      = playerService;
     _dbContext          = dbContext;
     _permissionsService = permissionsService;
 }
예제 #4
0
파일: GetIsos.cs 프로젝트: cmu-sei/Vm.Api
 public Handler(
     IVmService vmService,
     IVsphereService vsphereService,
     IPlayerService playerService,
     IViewService viewService)
 {
     _vmService      = vmService;
     _vsphereService = vsphereService;
     _playerService  = playerService;
     _viewService    = viewService;
 }
예제 #5
0
 public BaseHandler(
     IMapper mapper,
     IVsphereService vsphereService,
     IPlayerService playerService,
     IPrincipal principal,
     IPermissionsService permissionsService,
     IVmService vmService)
 {
     _mapper             = mapper;
     _vsphereService     = vsphereService;
     _playerService      = playerService;
     _userId             = (principal as ClaimsPrincipal).GetId();
     _permissionsService = permissionsService;
     _vmService          = vmService;
 }
예제 #6
0
 public Handler(
     IVmService vmService,
     IMapper mapper,
     IVsphereService vsphereService,
     ILogger <Get> logger,
     VsphereOptions vsphereOptions,
     IPrincipal user,
     IPlayerApiClient playerClient,
     IPlayerService playerService,
     IPermissionsService permissionsService) :
     base(mapper, vsphereService, playerService, user, permissionsService, vmService)
 {
     _vmService      = vmService;
     _mapper         = mapper;
     _vsphereService = vsphereService;
     _logger         = logger;
     _vsphereOptions = vsphereOptions;
     _user           = user as ClaimsPrincipal;
     _playerClient   = playerClient;
 }
예제 #7
0
 private void InitScope(IServiceScope scope)
 {
     _dbContext      = scope.ServiceProvider.GetRequiredService <VmContext>();
     _vsphereService = scope.ServiceProvider.GetRequiredService <IVsphereService>();
     _options        = _optionsMonitor.CurrentValue;
 }