Ejemplo n.º 1
0
        public void ProcessMessage(string rawCommand, TCPClient client)
        {
            JobStrategy solo = JobStrategy.RunOnOne;

            if (Regex.IsMatch(rawCommand, @"^EXECUTE\[\d+\] .+$"))
            {
                processExecuteCommand(rawCommand, client);
            }
        }
Ejemplo n.º 2
0
        public MAPIListener(string storeID)
        {
            _storeID = storeID;
            _bTrace  = Settings.TraceOutlookListeners;
            string strategy = Settings.ListenersStrategy;

            if (strategy != null && strategy.ToLower().Equals("timed"))
            {
                int delayInSeconds = Settings.ListenersStrategyTimeInSeconds;
                _jobStrategy = new JobStrategyTimed(delayInSeconds);
            }
            else
            {
                _jobStrategy = new JobStrategy(JobPriority.AboveNormal);
            }
        }
Ejemplo n.º 3
0
 public ExecuteCSharpCodeJob(JobStrategy jobStrategy, string completeCodeFileContents) : base(jobStrategy)
 {
 }
Ejemplo n.º 4
0
 public Job(JobStrategy jobStrategy)
 {
 }
Ejemplo n.º 5
0
 public EchoJob(JobStrategy jobStrategy, string echoLine) : base(jobStrategy)
 {
     this.echoLine = echoLine;
 }