public Application(string section) { ApplicatonSection AS = (ApplicatonSection)System.Configuration.ConfigurationManager.GetSection(section); if (AS != null) { initSection(AS); } else { initDefault(); } }
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); }