static void onBoot(IContainerInit adapter) { adapter.RegisterSingleton <ISmsService, SmsService>(); adapter.RegisterSingleton <ICustomerService, CustomerService>(); adapter.RegisterSingleton <IRabbitMessageBus, ServiceEndpoint>(); adapter.RegisterSingleton <IAppService, AppService>(); adapter.RegisterSingleton <IActorEngine, ActorEngine>(); }
static void OnBoot(IContainerInit adapter) { adapter.RegisterSingleton <IActorEngine, ActorEngine>(); }