public static IAppMessage Pausing(int TaskId, int Duration) => AppMessage.Babble("Pausing control task @TaskId for @Duration ms", new { TaskId, Duration });
/// <summary> /// Defines a verbose correlated message with typed content /// </summary> /// <typeparam name="C">The content type</typeparam> /// <param name="CT">The correlation value</param> /// <param name="template">A content-bound template string</param> /// <param name="content">The typed content</param> /// <param name="callerFile">The file from which the call was made</param> /// <param name="callerName">The name of the invoking member</param> /// <returns></returns> public static IAppMessage babble <C>(CorrelationToken CT, string template, C content, [CallerFilePath] string callerFile = null, [CallerMemberName] string callerName = null) => AppMessage.Babble(CT, template, content, callerFile, callerName);
/// <summary> /// Defines a verbose message /// </summary> /// <param name="text">The message text</param> /// <param name="callerFile">The file from which the call was made</param> /// <param name="callerName">The name of the invoking member</param> /// <returns></returns> public static IAppMessage babble(string text, [CallerFilePath] string callerFile = null, [CallerMemberName] string callerName = null) => AppMessage.Babble(text, callerFile, callerName);
public static IAppMessage SpinnerCompleted(Task spinner) => AppMessage.Babble("Spinner @TaskId completed", new { TaskId = spinner.Id });
public static IAppMessage OrchestrationPausing(string CommandName, int Duration) => AppMessage.Babble("Orchestration for @CommandName commands pausing for @Duration ms", new { CommandName, Duration });
public static IAppMessage CommandQueueIsEmpty(string CommandName) => AppMessage.Babble("The @CommandName queue is empty", new { CommandName });