using Microsoft.Extensions.DependencyInjection;
using MaksIT.PostClient.Shared;
namespace MaksIT.PostClient.Client;
public static class ServiceCollectionExtensions {
///
/// Registers the IMAP/POP3/SMTP session factory and OS secret store.
///
public static IServiceCollection AddPostClient(this IServiceCollection services) {
ArgumentNullException.ThrowIfNull(services);
services.AddSingleton();
services.AddSingleton();
services.AddSingleton();
services.AddSingleton();
services.AddSingleton();
return services;
}
}