/// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="userQueryService"></param>
 /// <param name="clientQueryService"></param>
 public HomeController(
     IUserQueryService userQueryService,
     IClientQueryService clientQueryService)
 {
     UserQueryService = userQueryService;
     ClientQueryService = clientQueryService;
 }
Example #2
0
 public CommonWidgetController(IUserQueryService userQueryService
                               , IBlogQueryService blogQueryService
                               , IProblemQueryService problemQueryService)
 {
     _userQueryService = userQueryService;
     _blogQueryService = blogQueryService;
     _problemQueryService = problemQueryService;
 }
 public UserInfoController(
     IUserQueryService userQueryService,
     IUserInfoRepository userInfoRepository
     )
 {
     UserQueryService = userQueryService;
     UserInfoRepository = userInfoRepository;
 }
Example #4
0
 public ProblemQueryService(
     IMathHubDbContext mathHubDbContext,
     IUserQueryService userQueryService,
     IMainPostQueryService mainPostQueryService)
 {
     ctx = mathHubDbContext.GetDbContext();
     this._userQueryService = userQueryService;
     this._mainPostQueryService = mainPostQueryService;
 }
 /// <summary>
 /// 默认构造函数
 /// </summary> 
 /// <param name="userQueryService"></param>
 /// <param name="userTask"></param>
 /// <param name="identityTask"></param>
 public RegController(
     IUserQueryService userQueryService, 
    
     IIdentityTask identityTask)
 {
     this._userQueryService = userQueryService;
     
     _identityTask = identityTask;
 }
Example #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserController"/> class.
        /// </summary>
        /// <param name="userQueryService">The user query service.</param>
        /// <param name="commandSender">The command sender.</param>
        /// <exception cref="System.ArgumentNullException">When userQueryService or commandSender are null.</exception>
        public UserController(IUserQueryService userQueryService, ICommandSender commandSender)
        {
            if (userQueryService == null)
            {
                throw new ArgumentNullException("userQueryService");
            }

            if (commandSender == null)
            {
                throw new ArgumentNullException("commandSender");
            }

            _userQueryService = userQueryService;
            _commandSender    = commandSender;
        }
 public AdvancedVrInputDispatcher(IMessagePopupService messagePopupService, IReadOnlyList <IVrNavigationMode> navigationModes,
                                  IEventRoutingService eventRoutingService, IUserQueryService userQueryService,
                                  IVrHeadPositionService headPositionService, IGlobalObjectService globalObjectService)
 {
     this.messagePopupService            = messagePopupService;
     this.userQueryService               = userQueryService;
     this.headPositionService            = headPositionService;
     this.globalObjectService            = globalObjectService;
     this.NavigationModes                = navigationModes.Where(x => !(x is IMinimapVrNavigationMode)).ToArray();
     this.minimapVrNavigationMode        = navigationModes.OfType <IMinimapVrNavigationMode>().Single();
     minimapVrNavigationMode.ZoomEnabled = true;
     eventRoutingService.Subscribe <INewFrameEvent>(typeof(IVrInputDispatcher), nameof(OnNewFrame), OnNewFrame);
     eventRoutingService.Subscribe <IFixedUpdateEvent>(typeof(IVrInputDispatcher), nameof(OnFixedUpdate), OnFixedUpdate);
     capabilities = VrInputDispatcherCapabilities.All;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public OAuthController(
     IClientQueryService clientQueryService,
     IClientTask clientTask,
     IClientAuthorizationTask clientAuthorizationTask,
     IClientAuthorizationQueryService clientAuthorizationQueryService, 
     IUserQueryService userQueryService,
     IIdentityTask identityTask)
 {
     ClientQueryService = clientQueryService;
     ClientTask = clientTask;
     ClientAuthorizationTask = clientAuthorizationTask;
     ClientAuthorizationQueryService = clientAuthorizationQueryService;
     UserQueryService = userQueryService;
     IdentityTask = identityTask;
 }
        public DebugVrPresentationView(INavigationService navigationService, IStoryService storyService,
                                       IUserQueryService userQueryService, ICommonNodeFactory commonNodeFactory,
                                       IAppModeService appModeService, IGlobalObjectService globalObjectService)
        {
            this.navigationService = navigationService;
            this.storyService      = storyService;
            this.userQueryService  = userQueryService;
            this.appModeService    = appModeService;
            uiCarrier = globalObjectService.UICarrier;
            uiCanvas  = uiCarrier.EnumerateChildren().Single();
            var canvasTransform = uiCanvas.GetComponent <RectTransform>();

            canvasTransform.sizeDelta = new Vector2(Screen.width, Screen.height);
            mainLayer = new ViewLayer();
            Layers    = new[] { mainLayer };
        }
Example #10
0
 public NoviceVrInputDispatcher(IMessagePopupService messagePopupService, IReadOnlyList <IVrNavigationMode> navigationModes,
                                IEventRoutingService eventRoutingService, IUserQueryService userQueryService,
                                IVrHeadPositionService headPositionService, IGlobalObjectService globalObjectService, IVrManipulationService vrManipulationService)
 {
     this.headPositionService            = headPositionService;
     this.globalObjectService            = globalObjectService;
     this.vrManipulationService          = vrManipulationService;
     minimapVrNavigationMode             = navigationModes.OfType <IMinimapVrNavigationMode>().Single();
     minimapVrNavigationMode.ZoomEnabled = false;
     freeTeleportMode = navigationModes.OfType <FreeTeleportVrNavigationMode>().Single();
     moveInPlaceMode  = navigationModes.OfType <MoveInPlaceVrNavigationMode>().Single();
     NavigationModes  = new IVrNavigationMode[] { freeTeleportMode, moveInPlaceMode };
     eventRoutingService.Subscribe <INewFrameEvent>(typeof(IVrInputDispatcher), nameof(OnNewFrame), OnNewFrame);
     eventRoutingService.Subscribe <IFixedUpdateEvent>(typeof(IVrInputDispatcher), nameof(OnFixedUpdate), OnFixedUpdate);
     capabilities = VrInputDispatcherCapabilities.All;
 }
Example #11
0
 public FamilyService(
     IMapper mapper, 
     IDbContextScopeFactory contextScopeFactory,
     IFamilyRepository familyRepository,
     IFamilyQueryService familyQueryService,
     IUserQueryService userQueryService,
     IUserService userService,
     IUserRepository userRepository) 
     : base(mapper, contextScopeFactory)
 {
     _familyRepository = familyRepository;
     _familyQueryService = familyQueryService;
     _userQueryService = userQueryService;
     _userService = userService;
     _userRepository = userRepository;
 }
Example #12
0
        public TeamController(IUserQueryService userQueryService, ICommandSender cmdSender, IProjectQueryService projectQueryService)
        {
            if (userQueryService == null)
            {
                throw new ArgumentNullException("userQueryService");
            }
            if (cmdSender == null)
            {
                throw new ArgumentNullException("cmdSender");
            }
            if (projectQueryService == null)
            {
                throw new ArgumentNullException("projectQueryService");
            }

            _projectQueryService = projectQueryService;
            _userQueryService    = userQueryService;
            _cmdSender           = cmdSender;
        }
        public VrPresentationView(IStoryService storyService, INavigationService navigationService, IGlobalObjectService globalObjectService,
                                  IUserQueryService userQueryService, IVrInputDispatcher vrInputDispatcher)
        {
            this.storyService        = storyService;
            this.navigationService   = navigationService;
            this.userQueryService    = userQueryService;
            this.globalObjectService = globalObjectService;
            this.vrInputDispatcher   = vrInputDispatcher;
            camera = new VrCamera(globalObjectService);

            layer = new ViewLayer
            {
                Camera       = camera,
                VisibleScene = null
            };
            Layers = new IViewLayer[]
            {
                layer
            };
        }
        public VrInitializerService(IDiContainer di, Lazy <IRenderService> renderServiceLazy, INavigationService navigationService, IStoryService storyService,
                                    IGlobalObjectService globalObjectService, IUserQueryService userQueryService, IViewService viewService,
                                    IVrInputDispatcher vrInputDispatcher,
                                    IRayHitIndex rayHitIndex, Lazy <IGui> guiLazy)
        {
            this.di = di;
            this.renderServiceLazy   = renderServiceLazy;
            this.navigationService   = navigationService;
            this.storyService        = storyService;
            this.globalObjectService = globalObjectService;
            this.userQueryService    = userQueryService;
            this.vrInputDispatcher   = vrInputDispatcher;
            this.rayHitIndex         = rayHitIndex;
            this.viewService         = viewService;
            this.guiLazy             = guiLazy;

            IsInitialized = false;
            var vrSwitcher = globalObjectService.EventObject.GetComponent <VrSwitcher>();

            vrSwitcher.VrInitialized += Init;
        }
Example #15
0
        public RisksController(IProjectQueryService projectService, ICommandSender commandSender,
                               IUserQueryService userQueryService)
        {
            if (projectService == null)
            {
                throw new ArgumentNullException("projectService");
            }

            if (commandSender == null)
            {
                throw new ArgumentNullException("commandSender");
            }

            if (userQueryService == null)
            {
                throw new ArgumentNullException("userQueryService");
            }

            _projectQueryService = projectService;
            _commandSender       = commandSender;
            _userQueryService    = userQueryService;
        }
Example #16
0
        protected PresentationView(INavigationService navigationService, IStoryService storyService,
                                   IUserQueryService userQueryService, ICommonNodeFactory commonNodeFactory,
                                   IAppModeService appModeService)
        {
            this.navigationService = navigationService;
            this.storyService      = storyService;
            this.userQueryService  = userQueryService;
            this.appModeService    = appModeService;

            mainLayer      = new ViewLayer();
            userQueryLayer = new ViewLayer();
            Layers         = new[] { mainLayer, userQueryLayer };

            querySceneComponent = AmFactory.Create <UserQuerySceneComponent>();
            var uqSceneRoot = commonNodeFactory.WorldRoot(false);

            uqSceneRoot.Components.Add(querySceneComponent);
            var uqScene  = Scene.Create(uqSceneRoot);
            var uqCamera = new PlaneOrthoBoundControlledCamera(uqSceneRoot, PlaneOrthoBoundControlledCamera.Props.Default, false);

            userQueryLayer.VisibleScene = uqScene;
            userQueryLayer.Camera       = uqCamera;
        }
		public UserApplicationService(ICommandDispatcher commandDispatcher, IUserQueryService userQueryService) {
			_commandDispatcher = commandDispatcher;
			_userQueryService = userQueryService;
		}
Example #18
0
 public UserCustomerController(IDomainManagerService domainManagerService,
                               IUserQueryService userQueryService) : base(domainManagerService)
 {
     _userQueryService = userQueryService;
 }
Example #19
0
 public LoginService(IUserQueryService dbQueryService)
 {
     _userQueryService = dbQueryService;
 }
Example #20
0
 public UserController(ICommandService commandService, IUserQueryService userQueryService) : base(commandService)
 {
     _userQueryService = userQueryService;
 }
 public GetUsersQueryHandler(IUserQueryService userQueryService)
 {
     this.userQueryService = userQueryService;
 }
 public UserController(IUserCommandService commandService, IUserQueryService queryService)
 {
     CommandService = commandService;
     QueryService   = queryService;
 }
Example #23
0
 public UserController(IUserQueryService userQueryService,
                       IUserService userService)
 {
     _userQueryService = userQueryService;
     _userService      = userService;
 }
 public UserController( )
 {
     ClientAuthorizationQueryService =base.Get<IClientAuthorizationQueryService>() ;
     UserQueryService = base.Get<IUserQueryService>();
 }
Example #25
0
        public HomeController(IUserCreationService service, IImageService imageService, IUserQueryService queryService)
        {
            if (service == null)
            {
                throw new System.ArgumentNullException("subjectQueryService", "Subject auery service is null.");
            }
            this.service      = service;
            this.imageService = imageService;
            this.queryService = queryService;

            service.CreateUser("admin", "*****@*****.**", "admin");
            service.AddUserRole("*****@*****.**", "Администратор");
        }
Example #26
0
 public PhotoGalleryRoleProvider(IUserRolesQueryService userRolesQueryService, IUserQueryService queryService)
 {
     this.userRolesQueryService = userRolesQueryService;
     this.queryService          = queryService;
 }
Example #27
0
 public UserHandle(IUserQueryService userQueryService, IDocumentService <UserDto> userDocumentServer)
 {
     this._userQueryService   = userQueryService;
     this._userDocumentServer = userDocumentServer;
 }
 public GetUsersRequestHandler(IUserQueryService userQueryService)
 {
     this.userQueryService = userQueryService;
 }
Example #29
0
 public ModulesController(IUserQueryService userQueryService)
 {
     _userQueryService = userQueryService;
 }
Example #30
0
 public User_Crud_Tests()
 {
     _userCommandService = Container.GetService <IUserCommandService>() !;
     _userQueryService   = Container.GetService <IUserQueryService>() !;
 }
Example #31
0
 public CreateUserService(IWalletQueryService walletQueryService, IUserQueryService dbQueryService)
 {
     _walletQueryService = walletQueryService;
     _userQueryService   = dbQueryService;
 }
Example #32
0
 public RefreshTokenQueryHandler(IUserQueryService userQueryService)
 {
     this.userQueryService = userQueryService;
 }
Example #33
0
 public CommonController(IUserQueryService userQueryService,
                         IIdentityService identityService)
 {
     this._userQueryService = userQueryService;
     IdentityService        = identityService;
 }
Example #34
0
 public CustomMembershipProvider()
 {
     _userSvc   = Container.Get <IUserQueryService>();
     _cmdSender = Container.Get <ICommandSender>();
 }
 public UserManagement(IUserCommandService commandService, IUserQueryService queryService)
 {
     this.CommandService = commandService;
     this.QueryService   = queryService;
 }
Example #36
0
 public AppController(ICacheService cacheService, IUserQueryService userQueryService, IUserCommandService userCommandService)
 {
     _cacheService       = cacheService;
     _userQueryService   = userQueryService;
     _userCommandService = userCommandService;
 }
 public HomeControllerAssembler(IUserQueryService userQueryService)
 {
     this.userQueryService = userQueryService;
 }
Example #38
0
 public IdentityController(IUserQueryService userQrySvc)
 {
     _userQrySvc = userQrySvc;
 }
Example #39
0
        private static string _incantation = "helloxiatian!@#";//访问咒语

        public WeiXinServiceController(IUserQueryService userQueryService,
                                       ITemplateMessageService templateMessageService)
        {
            _userQueryService       = userQueryService;
            _templateMessageService = templateMessageService;
        }