private void OnUnsolicitedStoreNotifications(object sender, FireAndForgetEventArgs <v12.Protocol.StoreNotification.UnsolicitedStoreNotifications> args) { Console.WriteLine(EtpExtensions.Serialize(args.Message.Body)); }
private void OnNotificationSubscriptionsStopped(object sender, FireAndForgetEventArgs <v12.Protocol.ChannelSubscribe.SubscriptionsStopped> args) { Console.WriteLine(EtpExtensions.Serialize(args.Message.Body)); }
/// <summary> /// Handles the UnsolicitedPartNotifications message from a store. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{UnsolicitedPartNotifications}"/> instance containing the event data.</param> protected virtual void HandleUnsolicitedPartNotifications(FireAndForgetEventArgs <UnsolicitedPartNotifications> args) { }
private void OnChannelData(object sender, FireAndForgetEventArgs <v12.Protocol.ChannelStreaming.ChannelData> args) { Console.WriteLine(EtpExtensions.Serialize(args.Message.Body)); }
private void OnRangeReplaced(object sender, FireAndForgetEventArgs <v12.Protocol.ChannelSubscribe.RangeReplaced> args) { Console.WriteLine(EtpExtensions.Serialize(args.Message.Body)); }
private void OnChannelRemove(object sender, FireAndForgetEventArgs <v11.Protocol.ChannelStreaming.ChannelRemove> args) { ChannelMetadata.TryRemove(args.Message.Body.ChannelId, out _); Console.WriteLine(EtpExtensions.Serialize(args.Message.Body)); }
private void OnChannelMetadata(object sender, FireAndForgetEventArgs <v12.Protocol.ChannelStreaming.ChannelMetadata> args) { Console.WriteLine(string.Join(Environment.NewLine, args.Message.Body.Channels.Select(d => EtpExtensions.Serialize(d)))); }
/// <summary> /// Handles the RangeReplaced message from a store. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{RangeReplaced}"/> instance containing the event data.</param> protected virtual void HandleRangeReplaced(FireAndForgetEventArgs <RangeReplaced> args) { }
/// <summary> /// Handles the SubscriptionsStopped message from a store when sent as a notification. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{SubscriptionsStopped}"/> instance containing the event data.</param> protected virtual void HandleNotificationSubscriptionsStopped(FireAndForgetEventArgs <SubscriptionsStopped> args) { }
/// <summary> /// Handles the ChannelData message from a store. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelData}"/> instance containing the event data.</param> protected virtual void HandleChannelData(FireAndForgetEventArgs <ChannelData> args) { }
/// <summary> /// Handles the ChannelsTruncated message from a store. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelsTruncated}"/> instance containing the event data.</param> protected virtual void HandleChannelsTruncated(FireAndForgetEventArgs <ChannelsTruncated> args) { }
/// <summary> /// Handles the ChannelRemove message from a producer. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelRemove}"/> instance containing the event data.</param> protected virtual void HandleChannelRemove(FireAndForgetEventArgs <ChannelRemove> args) { }
/// <summary> /// Handles the ChannelStatusChange message from a producer. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelStatusChange}"/> instance containing the event data.</param> protected virtual void HandleChannelStatusChange(FireAndForgetEventArgs <ChannelStatusChange> args) { }
/// <summary> /// Handles the ChannelMetadata message from producer that is a simple streamer. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelMetadata}"/> instance containing the event data.</param> protected virtual void HandleSimpleStreamerChannelMetadata(FireAndForgetEventArgs <ChannelMetadata> args) { }
/// <summary> /// Handles the ChannelsClosed message from a store when not sent in response to a request. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{ChannelsClosed}"/> instance containing the event data.</param> protected virtual void HandleNotificationChannelsClosed(FireAndForgetEventArgs <ChannelsClosed> args) { }
/// <summary> /// Handles the TruncateChannels message from a producer. /// </summary> /// <param name="args">The <see cref="FireAndForgetEventArgs{TruncateChannels}"/> instance containing the event data.</param> protected virtual void HandleTruncateChannels(FireAndForgetEventArgs <TruncateChannels> args) { }