Beispiel #1
0
 public void Register(SimpleInjector.Container container)
 {
     container.RegisterSingle<ISubService, SubService>();
     container.RegisterSingle<ISubDao, SubDao>();
     container.RegisterSingle<IPostService, PostService>();
     container.RegisterSingle<IPostDao, PostDao>();
 }
Beispiel #2
0
 public void Register(SimpleInjector.Container container)
 {
     container.RegisterSingle<ISubUserBanService, SubUserBanService>();
     container.RegisterSingle<ISubUserBanDao, SubUserBanDao>();
     container.RegisterSingle<ISubService, SubService>();
     container.RegisterSingle<ISubDao, SubDao>();
     container.RegisterSingle<IPostService, PostService>();
     container.RegisterSingle<IPostDao, PostDao>();
     container.RegisterSingle<IVoteService, VoteService>();
     container.RegisterSingle<IVoteDao, VoteDao>();
     container.RegisterSingle<ICommentService, CommentService>();
     container.RegisterSingle<ICommentDao, CommentDao>();
     container.RegisterSingle<IPermissionService, PermissionService>();
     container.RegisterSingle<IPermissionDao, PermissionDao>();
     container.RegisterSingle<ICommentTreeBuilder, CommentTreeBuilder>();
     container.RegisterSingle<ICommentTreeContextBuilder, CommentTreeContextBuilder>();
     container.RegisterSingle<ICommentNodeHierarchyBuilder, CommentNodeHierarchyBuilder>();
     container.RegisterSingle<ICommentWrapper, CommentWrapper>();
     container.RegisterSingle<IPostWrapper, PostWrapper>();
     container.RegisterSingle<ISubWrapper, SubWrapper>();
     container.RegisterSingle<ISubUserBanWrapper, SubUserBanWrapper>();
 }
Beispiel #3
0
 public void Register(SimpleInjector.Container container)
 {
     container.RegisterSingle<IEventDiscovery, EventDiscovery>();
     container.RegisterSingle<ICommandDiscovery, CommandDiscovery>();
 }
Beispiel #4
0
 public void Register(SimpleInjector.Container container)
 {
     container.RegisterSingle<IEventHandlerRegistry, EventHandlerRegistry>();
     container.RegisterSingle<ICommandHandlerRegistry, CommandHandlerRegistry>();
 }
 public void RegisterServices(SimpleInjector.Container container)
 {
     //container.Register<ILehrerRepository, LehrerRepository>();
     container.RegisterSingle<Uri>(new Uri(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Themes")));
 }