コード例 #1
0
        public override void Execute(CommandContext context)
        {
            var start = DateTime.Today;
            var end   = DateTime.Today + TimeSpan.FromDays(1);

            PipelineHelper.RunPipeline(start, end); // run the pipeline
            EventRaiser.RaiseEvent(start, end);
        }
コード例 #2
0
            public Aggregate(UserState state)
            {
                State = state;

                if (State.HasNewIdentity)
                {
                    EventRaiser.RaiseEvent(this, new UserCreated {
                        Id = State.Id
                    });
                }
            }
コード例 #3
0
            public void ChangeName(string name)
            {
                State.Name = name;

                EventRaiser.RaiseEvent(this, new NameChanged(State.Id, State.Name, name));
            }
コード例 #4
0
 private void simpleMethod()
 {
     MessageBox.Show("in FileWatcher.simple() about to raise the event");
     eventRaiser.RaiseEvent();
 }
コード例 #5
0
 public override bool CheckHit()
 {
     EventRaiser?.RaiseEvent();
     SetState(State.Inactive);
     return(true);
 }