Beispiel #1
0
 public BasePusher(IOptionManager optionManager, ConnectionRepository connectionRepository, IRichAdapter adapter, IRichProvider provider)
 {
     OptionManager             = optionManager;
     this.Adapter              = adapter;
     this.Provider             = provider;
     this.ConnectionRepository = connectionRepository;
 }
Beispiel #2
0
 public BaseIndexer(IOptionManager optionManager, IRichAdapter adapter, IRichProvider provider, ConnectionRepository connectionRepository)
 {
     OptionManager        = optionManager;
     Adapter              = adapter;
     Provider             = provider;
     ConnectionRepository = connectionRepository;
 }
 public BaseEntityIndexer(
     IProcessor processor,
     IOptionManager optionManager,
     IRichAdapter adapter) : base(optionManager, adapter)
 {
     Processor = processor;
 }
Beispiel #4
0
        static void Main(string[] args)
        {
            IOptionManager ow = OptionWorker.Current;

            ow.Initializes("my.option", true);
            Console.WriteLine(ow.Option[0].Value.Value);
        }
Beispiel #5
0
 public BaseEntityPuller(
     IOptionManager optionManager,
     IProcessor processor,
     IRichAdapter adapter) : base(optionManager, adapter)
 {
     EntityProcessor = processor;
 }
Beispiel #6
0
        public OgrenciYonetimModuluOgrenciListeleme(FeatureContext featureContext)
        {
            FeatureContext = featureContext;

            factory       = featureContext.Get <SmsWebApplicationFactory <Startup> >("SmsWebApplicationcontext");
            httpClient    = factory.CreateClient();
            optionManager = factory.OptionManager;
        }
        public OgrenciYonetimModuluOgrenciEkleme(ScenarioContext scenarioContext, FeatureContext featureContext)
        {
            scenarioContext = scenarioContext;
            FeatureContext  = featureContext;

            factory       = featureContext.Get <SmsWebApplicationFactory <Startup> >("SmsWebApplicationcontext");
            httpClient    = factory.CreateClient();
            optionManager = factory.OptionManager;
        }
Beispiel #8
0
 public BaseAttributePuller(
     IOptionManager optionManager,
     IProcessor entityProcessor,
     IProcessor attributeProcessor,
     IRichAdapter adapter) : base(optionManager, adapter)
 {
     EntityProcessor    = entityProcessor;
     AttributeProcessor = attributeProcessor;
 }
Beispiel #9
0
 public BaseReporter(IOptionManager optionManager,
                     ResolverFactory resolverFactory,
                     MessageDeliveryChannelRepository messageDelieveryChannelRepository)
 {
     OptionManager        = optionManager;
     this.resolverFactory = resolverFactory;
     this.messageDelieveryChannelRepository = messageDelieveryChannelRepository;
     Logger = resolverFactory.Resolve <ILogger>("SyncService");
 }
Beispiel #10
0
 public StudentController(ILogger <StudentController> logger,
                          IStudentManager studentManager,
                          IOptionManager optionManager,
                          IMapper mapper)
 {
     _logger         = logger;
     _mapper         = mapper;
     _studentManager = studentManager;
     _optionManager  = optionManager;
 }
Beispiel #11
0
 public BaseMapper(
     IProcessor processor,
     IOptionManager optionManager,
     IRichAdapter adapter)
 {
     Processor     = processor;
     OptionManager = optionManager;
     Provider      = adapter.GetProvider();
     Adapter       = adapter;
 }
Beispiel #12
0
 public BaseEntityPuller(IOptionManager optionManager,
                         IProcessor processor,
                         IRichProvider provider,
                         IRichAdapter adapter,
                         EntityRepository entityRepository,
                         ConnectionRepository connectionRepository) : base(optionManager, provider, adapter, connectionRepository)
 {
     EntityProcessor  = processor;
     EntityRepository = entityRepository;
 }
 public TeacherController(ILogger <TeacherController> logger,
                          ITeacherManager teacherManager,
                          IOptionManager optionManager,
                          IMapper mapper)
 {
     _logger         = logger;
     _mapper         = mapper;
     _teacherManager = teacherManager;
     _optionManager  = optionManager;
 }
Beispiel #14
0
 public SubscriptionController(UserManager <UserAccount> userManager,
                               SubscriptionManager subscriptionManager,
                               ApiResponseFactory responseFactory,
                               ApiModelFactory modelFactory,
                               IOptionManager optionManager)
 {
     this.userManager         = userManager;
     this.subscriptionManager = subscriptionManager;
     this.responseFactory     = responseFactory;
     this.modelFactory        = modelFactory;
     this.optionManager       = optionManager;
 }
 public SubscriptionManager(DataContext dataContext,
                            IOptionManager optionManager,
                            IProviderManager providerManager,
                            RegardScheduler scheduler,
                            IVideoStorageService videoStorageService)
 {
     this.dataContext         = dataContext;
     this.optionManager       = optionManager;
     this.providerManager     = providerManager;
     this.scheduler           = scheduler;
     this.videoStorageService = videoStorageService;
 }
Beispiel #16
0
        private IOptionManager GetOptionManager(string optionFile, bool monitor)
        {
            IOptionManager optionManager = optionManagerCollection[optionFile];

            lock (lockObject)
            {
                if (optionManager == null)
                {
                    optionManager = CreateOptionManager(optionFile, monitor);
                    optionManagerCollection.Add(optionFile, optionManager);
                }
            }
            return(optionManager);
        }
Beispiel #17
0
 public DownloadVideoJob(ILogger <DownloadVideoJob> logger,
                         DataContext dataContext,
                         IConfiguration configuration,
                         IOptionManager optionManager,
                         IYoutubeDlService ytdlService,
                         IVideoDownloaderService videoDownloader,
                         IVideoStorageService videoStorage) : base(logger, dataContext)
 {
     this.configuration   = configuration;
     this.optionManager   = optionManager;
     this.ytdlService     = ytdlService;
     this.videoDownloader = videoDownloader;
     this.videoStorage    = videoStorage;
 }
Beispiel #18
0
 public SynchronizeJob(ILogger <SynchronizeJob> log,
                       DataContext dataContext,
                       JobTrackerService jobTrackerService,
                       IOptionManager optionManager,
                       IProviderManager providerManager,
                       IVideoStorageService videoStorageService,
                       IVideoDownloaderService videoDownloader,
                       RegardScheduler scheduler) : base(log, dataContext, jobTrackerService)
 {
     this.optionManager       = optionManager;
     this.providerManager     = providerManager;
     this.videoStorageService = videoStorageService;
     this.videoDownloader     = videoDownloader;
     this.scheduler           = scheduler;
 }
Beispiel #19
0
 public BaseAttributeIndexer(
     IProcessor entityProcessor,
     IProcessor attributeProcessor,
     IOptionManager optionManager,
     IRichProvider provider,
     IRichAdapter adapter,
     EntityRepository entityRepository,
     AttributeRepository attributeRepository,
     ConnectionRepository connectionRepository) : base(optionManager, adapter, provider, connectionRepository)
 {
     AttributeProcessor  = attributeProcessor;
     EntityProcessor     = entityProcessor;
     EntityRepository    = entityRepository;
     AttributeRepository = attributeRepository;
 }
Beispiel #20
0
 public BaseMapper(
     IProcessor processor,
     IOptionManager optionManager,
     IRichProvider provider,
     IRichAdapter adapter,
     EntityRepository entityRepository,
     ConnectionRepository connectionRepository)
 {
     Processor            = processor;
     OptionManager        = optionManager;
     Provider             = provider;
     Adapter              = adapter;
     EntityRepository     = entityRepository;
     ConnectionRepository = connectionRepository;
 }
Beispiel #21
0
 public BaseAttributePusher(
     IOptionManager optionManager,
     IProcessor entityProcessor,
     IProcessor attributeProcessor,
     IRichProvider provider,
     IRichAdapter adapter,
     EntityRepository entityRepository,
     AttributeRepository attributeRepository,
     ConnectionRepository connectionRepository) : base(optionManager, connectionRepository, adapter, provider)
 {
     this.EntityProcessor     = entityProcessor;
     this.AttributeProcessor  = attributeProcessor;
     this.EntityRepository    = entityRepository;
     this.AttributeRepository = attributeRepository;
 }
 public SubscriptionManager(DataContext dataContext,
                            IOptionManager optionManager,
                            IProviderManager providerManager,
                            MessagingService messaging,
                            RegardScheduler scheduler,
                            IVideoStorageService videoStorageService,
                            ApiModelFactory apiModelFactory)
 {
     this.dataContext         = dataContext;
     this.optionManager       = optionManager;
     this.providerManager     = providerManager;
     this.messaging           = messaging;
     this.scheduler           = scheduler;
     this.videoStorageService = videoStorageService;
     this.apiModelFactory     = apiModelFactory;
 }
Beispiel #23
0
        private IOptionManager CreateOptionManager(string optionFile, bool monitor)
        {
            OptionAttribute[] optionAttributes = OptionAttribute.GetOptionAttributeFromAssembly(null);
            IOptionManager    createdObject    = null;

            if (optionAttributes != null && optionAttributes.Length > 0)
            {
                OptionAttribute optionAttribute = optionAttributes[0];
                for (int i = 1; i < optionAttributes.Length; i++)
                {
                    if (optionAttributes[i].Priority > optionAttribute.Priority)
                    {
                        optionAttribute = optionAttributes[i];
                    }
                }
                Type type = optionAttribute.RealType;
                if (type == null)
                {
                    try
                    {
                        type = UtilityType.CreateType(this.GetType().Assembly, optionAttribute.TypeName, true);
                    }
                    catch (Exception e)
                    {
                        throw new OptionException("类型载入错误:" + e.Message, e);
                    }
                }
                try
                {
                    createdObject = (IOptionManager)UtilityType.CreateObject(this.GetType().Assembly, type.FullName, typeof(IOptionManager), true);
                    createdObject.Initializes(optionFile, monitor);
                }
                catch (Exception e)
                {
                    throw new OptionException(e.Message, e);
                }
            }
            return(createdObject);
        }
Beispiel #24
0
 /// <summary>
 /// 重新载入相关选项信息
 /// </summary>
 public static void Reset()
 {
     Current.optionManagerCollection.Clear();
     globalConfigManager = null;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="optionManager"></param>
 public OptionsController(IOptionManager optionManager)
 {
     this.optionManager = optionManager;
 }
Beispiel #26
0
 /// <summary>
 /// �����������ѡ����Ϣ
 /// </summary>
 public static void Reset()
 {
     Current.optionManagerCollection.Clear();
     globalConfigManager = null;
 }
 public BaseMessageDeliverChannel(IOptionManager optionManager)
 {
     OptionManager = optionManager;
 }
Beispiel #28
0
 public SetupController(UserManager <UserAccount> userManager, IOptionManager optionManager, ApiResponseFactory responseFactory)
 {
     this.userManager     = userManager;
     this.optionManager   = optionManager;
     this.responseFactory = responseFactory;
 }
Beispiel #29
0
 protected BaseProvider(IOptionManager optionManager)
 {
     OptionManager = optionManager;
 }
Beispiel #30
0
 public BaseSettingProvider(IOptionManager optionManager)
 {
     OptionManager = optionManager;
 }
 public BaseIndexExporter(IOptionManager optionManager)
 {
     OptionManager = optionManager;
 }