예제 #1
0
 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>();
 }
예제 #2
0
 static void OnBoot(IContainerInit adapter)
 {
     adapter.RegisterSingleton <IActorEngine, ActorEngine>();
 }