public void Stop() { writeStrategy = new DoNotWrite(); isStarted = false; if (StopEvent != null) { StopEvent(); } }
public void Start() { writeStrategy = new WriteToMemory(); isStarted = true; if (StartEvent != null) { StartEvent(); } }
public void Stop() { writeStrategy = new DoNotWrite(); }
public void Start() { writeStrategy = new WriteToMemory(); }
public void Stop() { writeStrategy = new DoNotWrite(); isStarted = false; if (StopEvent != null) StopEvent(); }
public void Start() { writeStrategy = new WriteToMemory(); isStarted = true; if (StartEvent != null) StartEvent(); }
public NotifyProspectsWhenAccomodationIsSoldDomainEventHandler(WriteStrategy writeStrategy, PersonQueryExtended personQuery) { this.personQuery = personQuery; this.writeStrategy = writeStrategy; }