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

            m_Database  = MongoClient.DatabaseFromConnectString(cstring);
            m_Converter = FactoryUtils.MakeAndConfigure <RowConverter>(node[CONFIG_CONVERTER_SECTION], typeof(RowConverter));
        }
コード例 #2
0
        public ProcessControllerService(object director) : base(director)
        {
            LogLevel = MessageType.Error;

            lock (s_Lock)
            {
                if (s_Instance != null)
                {
                    throw new WorkersException("{0} is already allocated".Args(typeof(ProcessControllerService).FullName));
                }

                s_Instance = this;
            }
        }
コード例 #3
0
 protected override void Destructor()
 {
     base.Destructor();
     DisposeAndNull(ref m_ProcessStore);
     s_Instance = null;
 }
コード例 #4
0
ファイル: ProcessStore.cs プロジェクト: saleyn/agni
 protected ProcessStore(ProcessControllerService director, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
 }