public sealed override void ProcessMe() { CheckFile(); var newMessage = new SqlFileMessage(_newPath); var deleteMessage = new SqlFileDeleteMessage(_oldPath); MessageBus.Instance.Pubish(newMessage); MessageBus.Instance.Pubish(deleteMessage); }
private void _fsw_Delete(object sender, FileSystemEventArgs e) { SqlFileDeleteMessage message = new SqlFileDeleteMessage(e.FullPath); MessageBus.Instance.Pubish(message); }