コード例 #1
0
        public MongoTodoQueueStore(TodoQueueService director, IConfigSectionNode node) : base(director, node)
        {
            var cstring = ConfigStringBuilder.Build(node, CONFIG_MONGO_SECTION);

            m_Database  = App.GetMongoDatabaseFromConnectString(cstring);
            m_Converter = FactoryUtils.MakeAndConfigure <DataDocConverter>(node[CONFIG_CONVERTER_SECTION], typeof(DataDocConverter));
        }
コード例 #2
0
        internal TodoQueue(TodoQueueService director, IConfigSectionNode node) : base(director)
        {
            ConfigAttribute.Apply(this, node);

            if (Name.IsNullOrWhiteSpace())
            {
                throw new WorkersException(GetType().Name + ".ctor($name=null|empty)");
            }
        }
コード例 #3
0
ファイル: TodoQueueStore.cs プロジェクト: wangchengqun/azos
 protected TodoQueueStore(TodoQueueService director, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
 }