static void GenericContentHandler(object content, IrisContextHook hook) { Console.WriteLine($"Content: {content} [for {hook.TargetChannel}, on {hook.PublicationDateTime}]"); }
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}\""); } }
private void GenericContentHandler(string receiverName, string subscribedChannel, object content, IrisContextHook hook) { Console.WriteLine($"{receiverName} received \"{content.ToString()}\" from \"{subscribedChannel}\""); }