Class ExternalServices
- Namespace
- Cratis.Chronicle.ExternalServices
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IExternalServices.
public class ExternalServices : IExternalServices
- Inheritance
-
ExternalServices
- Implements
- Inherited Members
- Extension Methods
Constructors
ExternalServices(IEventStore, ILogger<ExternalServices>)
Represents an implementation of IExternalServices.
public ExternalServices(IEventStore eventStore, ILogger<ExternalServices> logger)
Parameters
eventStoreIEventStoreThe IEventStore.
loggerILogger<ExternalServices>The ILogger.
Methods
Register(string, Action<IExternalServiceBuilder>)
Registers an external service.
public Task Register(string name, Action<IExternalServiceBuilder> configure)
Parameters
namestringThe name of the external service. The name is also used as its identifier.
configureAction<IExternalServiceBuilder>The Action<T> for configuring the external service.
Returns
- Task
Awaitable task.