Provides abstractions for connections. Typically used areas and classes/interfaces/services: - IConnection, IConnectionProvider, IConnectionFactory. Kephas Framework ("stone" in aramaic) aims to deliver a solid infrastructure for applications and application ecosystems.
$ dotnet add package Kephas.ConnectivityThe purpose of this library is to provide abstractions for connections to various services.
Check the following packages for more information:
Packages providing connections:
// this code snippet uses the Kephas.Mail.MailKit package.
// normally you would get the processor injected into the service constructor.
var provider = injector.Resolve<IConnectionProvider>();
using var connection = await provider.CreateConnection(new Uri("imap://my.server.com:993/john.doe"), new UserClearTextPasswordCredentials("john", "doe"));
await connection.OpenAsync().PreserveThreadContext();
// do somethig with the IMAP connection to the email account.
// ...