Ejemplo n.º 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));
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 protected override void Destructor()
 {
     base.Destructor();
     DisposeAndNull(ref m_ProcessStore);
     s_Instance = null;
 }
Ejemplo n.º 4
0
 protected ProcessStore(ProcessControllerService director, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
 }