private void SendMessage(string message, PipeToSampleStatusCode pipeToSampleStatus = PipeToSampleStatusCode.Normal)
        {
            //create the message instance
            var consoleMsg = StatusMessageHelper.CreateMessage(message, pipeToSampleStatus);

            //Select the ConsoleWriterActor and send it a message
            Context.ActorSelection(_consoleWriterActorPath).Tell(consoleMsg);
        }
        private void SignalFeedProcessingFailure(string message, string feedUri)
        {
            //create the FAILURE message instance
            var consoleMsg = StatusMessageHelper.CreateFailureMessage(message, feedUri);

            //Select the ConsoleWriterActor and send it a message
            Context.ActorSelection(_consoleWriterActorPath).Tell(consoleMsg);
        }
        private void SendDownloadComplete(string message, string feedUri)
        {
            //create the FAILURE message instance
            var consoleMsg = StatusMessageHelper.CreateOperationCompletedSuccessfullyMessage(message, feedUri);

            //Select the ConsoleWriterActor and send it a message
            Context.ActorSelection(_consoleWriterActorPath).Tell(consoleMsg);
        }
Ejemplo n.º 4
0
 public ConsoleWriteTaskCompleteMessage(string message, string url)
     : this(message, url, StatusMessageHelper.MapConsoleColor(PipeToSampleStatusCode.Normal))
 {
 }
Ejemplo n.º 5
0
 public ConsoleWriteMsg(string message)
     : this(message, StatusMessageHelper.MapConsoleColor(PipeToSampleStatusCode.Normal))
 {
 }