Beispiel #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));
        }
Beispiel #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)");
            }
        }
Beispiel #3
0
 protected TodoQueueStore(TodoQueueService director, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
 }