예제 #1
0
파일: Application.cs 프로젝트: zhyzhy782/ec
        public Application(string section)
        {
            ApplicatonSection AS = (ApplicatonSection)System.Configuration.ConfigurationManager.GetSection(section);

            if (AS != null)
            {
                initSection(AS);
            }
            else
            {
                initDefault();
            }
        }
예제 #2
0
파일: Application.cs 프로젝트: zhyzhy782/ec
 private void initSection(ApplicatonSection section)
 {
     PacketMaxsize    = section.PacketMaxsize;
     Host             = section.Host;
     Port             = section.Port;
     Http             = section.Http;
     mSendThreads     = section.SendThreads;
     mReceiveThreads  = section.ReceiveThreads;
     mSyncSend        = section.SyncSend;
     mSendUseQueue    = section.SendQueue;
     mReceiveUseQueue = section.ReceiveQueue;
     LoadPacketAnalyzer(section.PacketAnalyzer);
     LoadMessageCenter(section.MessageCenter);
 }
예제 #3
0
파일: Application.cs 프로젝트: qcjxberin/ec
        private void initSection(ApplicatonSection section)
        {
            PacketMaxsize = section.PacketMaxsize;
            Host = section.Host;
            Port = section.Port;
            Http = section.Http;
            mSendThreads = section.SendThreads;
            mReceiveThreads = section.ReceiveThreads;
            mSyncSend = section.SyncSend;
            mSendUseQueue = section.SendQueue;
            mReceiveUseQueue = section.ReceiveQueue;
            LoadPacketAnalyzer(section.PacketAnalyzer);
            LoadMessageCenter(section.MessageCenter);

        }