コード例 #1
0
 static void GenericContentHandler(object content, IrisContextHook hook)
 {
     Console.WriteLine($"Content: {content} [for {hook.TargetChannel}, on {hook.PublicationDateTime}]");
 }
コード例 #2
0
 private void GenericContentHandler(string receiverName, string subscribedChannel, object content, IrisContextHook hook)
 {
     if (hook.Unsubscribing)
     {
         Console.WriteLine("Unsubscribing!");
     }
     else
     {
         Console.WriteLine($"{receiverName} received \"{content?.ToString()}\" from \"{subscribedChannel}\"");
     }
 }
コード例 #3
0
 private void GenericContentHandler(string receiverName, string subscribedChannel, object content, IrisContextHook hook)
 {
     Console.WriteLine($"{receiverName} received \"{content.ToString()}\" from \"{subscribedChannel}\"");
 }