Exemplo n.º 1
0
        public void TestMethod1()
        {
            Console.WriteLine("Start test");
            var ddQ = new DDManagerMsgQueue();

            for (int i = 1; i < 1000; i++)
            {
                ddQ.Put(new DDNode());
            }
        }
Exemplo n.º 2
0
        public Server(DDNode conf)
        {
            var ddType = GetDDType();

            if (conf.Type != ddType)
            {
                throw new DDTypeExpectedException(conf.Type, ddType);
            }

            if (conf.Attributes.Contains(SchemaSrv.AttPathToConditions))
            {
                this.NodeConditions = GetNodeByPath(conf, SchemaSrv.AttPathToConditions);
            }
            else
            {
                this.NodeConditions = DDMsgFlushConditions.GetDefaultConditionsNode();
            }
            FlushCondition = new DDMsgFlushConditions(NodeConditions);
            MsgQueue       = new DDManagerMsgQueue(FlushCondition);

            this.NodeProviders = GetNodeByPath(conf, SchemaSrv.AttPathToProviders);
        }