public virtual void Progress(ProgressMessage message) { if (message != null) { string format = $"{Name} task propress update Message: {message.Message}, Percent : {message.Percent}"; Console.WriteLine(format); Store(format); } }
public override void Progress(ProgressMessage message) { message.TaskName = Name; IPubSubResult result = PubSubClient.Publish(new PubSubMessage { Event = "task:onprogress", Channel = "panteon", Payload = message }); Console.WriteLine(result.Body); }