Exemplo n.º 1
0
 /// <summary> Сервис сохранение новостей </summary>
 public NewsModelSaver(
     IGraphLabsPrincipal currentUser,
     IOperationContextFactory <IGraphLabsContext> operationContextFactory)
 {
     _currentUser             = currentUser;
     _operationContextFactory = operationContextFactory;
 }
Exemplo n.º 2
0
 /// <summary> Сервис предоставления данных модулям заданий </summary>
 public VariantProviderService(
     IOperationContextFactory <IGraphLabsContext> operationFactory,
     ISystemDateService systemDate)
 {
     _operationFactory = operationFactory;
     _systemDate       = systemDate;
 }
Exemplo n.º 3
0
 public DebugTaskUploader(
     ITaskManager taskManager,
     IOperationContextFactory <IGraphLabsContext> operationFactory)
 {
     _taskManager      = taskManager;
     _operationFactory = operationFactory;
 }
Exemplo n.º 4
0
 public static void SetOperationContextFactory(IOperationContextFactory factory)
 {
     lock (Current)
     {
         Current = factory;
     }
 }
Exemplo n.º 5
0
 public static void SetOperationContextFactory(IOperationContextFactory factory)
 {
     lock (Current)
     {
         Current = factory;
     }
 }
Exemplo n.º 6
0
 public MaterialStimulationService(IUser user,
                                   IEntityBinderFactory binderFactory,
                                   IOperationContextFactory dbFactory)
 {
     _user          = user;
     _dbFactory     = dbFactory;
     _binderFactory = binderFactory;
 }
Exemplo n.º 7
0
 public RepositoryFactory(
     IFactonModelInitializer factonModelInitializer,
     IOperationContextFactory operationContextFactory,
     IBindableModelBuilderFactory modelBuilderFactory)
 {
     this.factonModelInitializer  = factonModelInitializer;
     this.operationContextFactory = operationContextFactory;
     this.modelBuilderFactory     = modelBuilderFactory;
 }
Exemplo n.º 8
0
 public LoadDemoVariantForExecution(
     IOperationContextFactory <IGraphLabsContext> operationFactory,
     IAuthenticationSavingService authService,
     IInitParamsProvider initParamsProvider,
     TaskExecutionModelLoader taskModelLoader,
     TestExecutionModelLoader testExecutionModelLoader)
     : base(operationFactory, authService, initParamsProvider, taskModelLoader, testExecutionModelLoader)
 {
 }
Exemplo n.º 9
0
 public LabWorkExecutionController(
     IOperationContextFactory <IGraphLabsContext> operationContextFactory,
     IDemoVariantModelLoader demoVariantModelLoader,
     IEntityBasedModelSaver <StudentAnswerModel, StudentAnswer> answerSaver
     )
 {
     _demoVariantModelLoader  = demoVariantModelLoader;
     _answerSaver             = answerSaver;
     _operationContextFactory = operationContextFactory;
 }
Exemplo n.º 10
0
        /// <summary> Проверяет личность пользователя и тп </summary>
        public MembershipEngine(
            IHashCalculator hashCalculator,
            ISystemDateService systemDateService,
            IOperationContextFactory <IGraphLabsContext> operationFactory)
        {
            Contract.Requires(hashCalculator != null);
            Contract.Requires(systemDateService != null);

            _hashCalculator    = hashCalculator;
            _systemDateService = systemDateService;
            _operationFactory  = operationFactory;
        }
Exemplo n.º 11
0
 public DemoVariantModelLoader(
     IAuthenticationSavingService authService,
     IInitParamsProvider initParamsProvider,
     IOperationContextFactory <IGraphLabsContext> operationFactory,
     TaskExecutionModelLoader taskModelLoader,
     TestExecutionModelLoader testExecutionModelLoader)
 {
     _authService              = authService;
     _initParamsProvider       = initParamsProvider;
     _operationFactory         = operationFactory;
     _taskModelLoader          = taskModelLoader;
     _testExecutionModelLoader = testExecutionModelLoader;
 }
Exemplo n.º 12
0
 protected LoadVariantForExecutionBase(
     IOperationContextFactory <IGraphLabsContext> operationFactory,
     IAuthenticationSavingService authService,
     IInitParamsProvider initParamsProvider,
     TaskExecutionModelLoader taskModelLoader,
     TestExecutionModelLoader testModelLoader)
     : base(operationFactory)
 {
     _testModelLoader    = testModelLoader;
     _authService        = authService;
     _initParamsProvider = initParamsProvider;
     _taskModelLoader    = taskModelLoader;
     _operationFactory   = operationFactory;
 }
Exemplo n.º 13
0
 /// <summary> Сервис сохранения групп </summary>
 public GroupModelSaver(IOperationContextFactory <IGraphLabsContext> operationContextFactory)
     : base(operationContextFactory)
 {
 }
Exemplo n.º 14
0
 /// <summary> Сервис предоставления данных модулям заданий </summary>
 public UserActionsRegistrator(IOperationContextFactory <IGraphLabsContext> operationFactory,
                               ISystemDateService systemDate)
 {
     _operationFactory = operationFactory;
     _systemDate       = systemDate;
 }
Exemplo n.º 15
0
 public ODataRepository(IModelContext modelContext, IOperationContextFactory operationContextFactory)
 {
     this.modelContext            = modelContext;
     this.operationContextFactory = operationContextFactory;
 }
Exemplo n.º 16
0
 public TaskController(ITasksContext taskContext, ITaskManager taskManager, IOperationContextFactory <IGraphLabsContext> operationFactory)
 {
     _taskContext      = taskContext;
     _taskManager      = taskManager;
     _operationFactory = operationFactory;
 }
Exemplo n.º 17
0
 protected AbstractModelSaver(IOperationContextFactory <IGraphLabsContext> operationContextFactory)
 {
     _operationContextFactory = operationContextFactory;
 }
Exemplo n.º 18
0
 public EntityRemover(IOperationContextFactory <IGraphLabsContext> operationContextFactory)
 {
     _operationContextFactory = operationContextFactory;
 }
Exemplo n.º 19
0
 /// <summary> Сервис для генераторов вариантов </summary>
 public VariantGenService(IOperationContextFactory <IGraphLabsContext> operationFactory)
 {
     _operationFactory = operationFactory;
 }
Exemplo n.º 20
0
 protected AbstractOperation(IOperationContextFactory <IGraphLabsContext> operationFactory)
 {
     _operation = operationFactory.Create();
 }
Exemplo n.º 21
0
 public StudentAnswerModelSaver(
     IOperationContextFactory <IGraphLabsContext> operationContextFactory
     ) : base(operationContextFactory)
 {
     _operationContextFactory = operationContextFactory;
 }
Exemplo n.º 22
0
 public EditLabScheduleModelSaver(IOperationContextFactory <IGraphLabsContext> operationContextFactory) : base(operationContextFactory)
 {
 }
Exemplo n.º 23
0
 public TestPoolModelSaver(
     IOperationContextFactory <IGraphLabsContext> operationContextFactory
     ) : base(operationContextFactory)
 {
 }