예제 #1
0
        static void Main()
        {
            Context.PreLoading();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());

            Context.BeforeExit();
        }
예제 #2
0
        public bool Initialize(EntityInitializeArgument arg)
        {
            _context.PreLoading(arg);
            _controler = new SOAPServerControler(_context);
            _receiver  = new SOAPReceiver(_context.ConfigMgr.Config, _context.ConfigMgr.Config.GetWCFConfigFileNameWithFullPath(), _context.Log);
            _receiver.OnMessageReceived += delegate(SOAPReceiverSession session)
            {
                bool res = _controler.ProcessSoapSession(session, _context.ConfigMgr.Config.InboundMessageDispatching.Model, this);

                //string Keywords = GetKeywords(session.IncomingMessage.Body.ToString());
                //SendLogMessage(string.Format("Process SOAP message {0}",res),session.IncomingMessage.Body.ToString(),Keywords);
                return(res);
            };
            return(true);
        }
예제 #3
0
 public bool Initialize(EntityInitializeArgument arg)
 {
     _context.PreLoading(arg);
     _controler = new FileWriterControler(_context);
     return(true);
 }
예제 #4
0
 public bool Initialize(EntityInitializeArgument arg)
 {
     _context.PreLoading(arg);
     _controler = new CSBrokerOutboundControler(this);
     return(true);
 }