Table of Contents

Interface IMailtrapClientFactory

Namespace
Mailtrap
Assembly
Mailtrap.Abstractions.dll

Factory to spawn IMailtrapClient implementation instances.

public interface IMailtrapClientFactory : IDisposable
Inherited Members

Remarks

Primary use case is for scenarios when usage of DI container is not possible or desired.
Disposable.

Methods

CreateClient()

Creates new instance of IMailtrapClient.

IMailtrapClient CreateClient()

Returns

IMailtrapClient

New IMailtrapClient instance.

Remarks

Each call to this method is guaranteed to return a new instance of IMailtrapClient.

Exceptions

ObjectDisposedException

When factory was disposed.