Beispiel #1
0
 public static IAppMessage Pausing(int TaskId, int Duration)
 => AppMessage.Babble("Pausing control task @TaskId for @Duration ms",
                      new
 {
     TaskId,
     Duration
 });
Beispiel #2
0
 /// <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);
Beispiel #3
0
 /// <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);
Beispiel #4
0
 public static IAppMessage SpinnerCompleted(Task spinner)
 => AppMessage.Babble("Spinner @TaskId completed", new
 {
     TaskId = spinner.Id
 });
Beispiel #5
0
 public static IAppMessage OrchestrationPausing(string CommandName, int Duration)
 => AppMessage.Babble("Orchestration for @CommandName commands pausing for @Duration ms", new
 {
     CommandName,
     Duration
 });
Beispiel #6
0
 public static IAppMessage CommandQueueIsEmpty(string CommandName)
 => AppMessage.Babble("The @CommandName queue is empty", new
 {
     CommandName
 });