/// <summary> /// Handles resources events returned by the <see cref="IKubernetes"/> client /// </summary> /// <param name="type">The <see cref="WatchEventType"/></param> /// <param name="e">The watched <see cref="Corev1Event"/></param> protected virtual void OnNext(WatchEventType type, Corev1Event e) { if (this.Options.Predicate == null || (this.Options.Predicate != null && this.Options.Predicate(type, e))) { this.Subject.OnNext(e); } }
public Task PublishAsync(Corev1Event @event) => _client.Save(@event);