예제 #1
0
        public sealed override void ProcessMe()
        {
            CheckFile();
            var newMessage    = new SqlFileMessage(_newPath);
            var deleteMessage = new SqlFileDeleteMessage(_oldPath);

            MessageBus.Instance.Pubish(newMessage);
            MessageBus.Instance.Pubish(deleteMessage);
        }
예제 #2
0
        private void _fsw_Delete(object sender, FileSystemEventArgs e)
        {
            SqlFileDeleteMessage message = new SqlFileDeleteMessage(e.FullPath);

            MessageBus.Instance.Pubish(message);
        }