INotificationService

Interfaces · AiDotNet.TrainingMonitoring.Notifications

Interface for notification services.

Implements: IDisposable

Known implementations: EmailNotificationService, SlackNotificationService

How It Works

For Beginners: Notification services allow you to receive alerts about your training progress via email, Slack, or other channels. This is especially useful for long-running training jobs where you want to be notified of important events like completion, failures, or when a new best model is found.

Properties

Property Summary
bool IsConfigured { get; } Gets whether the service is properly configured and ready to send.
string ServiceName { get; } Gets the name of this notification service.

Methods

Method Summary
Task<bool> SendAsync(TrainingNotification notification, CancellationToken cancellationToken) Sends a notification asynchronously.
Task<bool> TestConnectionAsync(CancellationToken cancellationToken) Tests the connection to the notification service.
bool Send(TrainingNotification notification) Sends a notification synchronously.