public void RegisterServices(ContainerRegisterer register) { register.Type<ITeamRepository>().ImplementedBy<TeamRepository>(); register.Type<IConfigurationRepository>().ImplementedBy<ConfigurationRepository>(); register.Type<ILeaderboardRepository>().ImplementedBy<LeaderboardRepository>(); register.Type<IObjectContainer>().Is(Database.Db); }
public void RegisterServices(ContainerRegisterer register) { foreach (Type type in TransientServices()) { register.Type(type).AsTransient(); } foreach (Type type in SingletonServices()) { register.Type(type).AsSingleton(); } foreach (Type type in AllServices()) { register.Type(type); } }
public void RegisterServices(ContainerRegisterer register) { register.Type<WebServerStartup>(); register.Type<AdministratorAuthentication>(); register.Type<RefereeThread>(); register.Type<ScoreKeeper>(); register.Type<IFormsAuthentication>().ImplementedBy<FormsAuthenticationService>(); register.Type<ISignin>().ImplementedBy<SigninService>(); register.Type<IInitialSetup>().ImplementedBy<InitialSetupService>(); register.Type<MatchStarter>(); GetType().Assembly.GetExportedTypes().Where(x => typeof(Controller).IsAssignableFrom(x)).Each( x => register.Type(x).AsTransient() ); }
public void RegisterServices(ContainerRegisterer register) { foreach (Assembly assembly in _assemblies) { foreach (Type type in assembly.GetTypes()) { if (_inspectBusTypes.IsConsumer(type)) { if (_inspectBusTypes.IsSagaConsumer(type)) { register.Type(type).AsTransient(); } else { register.Type(type); } } } } }
public void RegisterServices(ContainerRegisterer register) { register.Type<FileSystem>(); register.Type<Clock>(); register.Type<IFileSystemEntryRepository>().Is(_fileSystemEntryRepository); register.Type<FileAndDirectoryRulesRepository>(); register.Type<IConfigurationRepository>().Is(_configurationRepository); register.Type<ConfigurationPaths>(); register.Type<CurrentConfiguration>(); register.Type<IProjectManifestRepository>().Is(_projectManifestRepository); register.Type<ICurrentProjectRepository>().Is(_currentProjectRepository); register.Type<IRepositoryRepository>().Is(_repositoryRepository); register.Type<IRepositorySetRepository>().Is(_repositorySetRepository); register.Type<SeachRepositoryCommand>(); register.Type<CommandFactory>(); register.Type<UnpackageCommand>(); register.Type<ShowCommand>(); register.Type<AddNewVersionCommand>(); register.Type<AddDependencyCommand>(); register.Type<RefreshCommand>(); register.Type<ConfigureCommand>(); register.Type<HelpCommand>(); register.Type<ProjectState>(); register.Type<RepositorySets>(); register.Type<ProjectDependencies>(); }
public void RegisterServices(ContainerRegisterer register) { register.Type<ITeamManagementCommands>().ImplementedBy<TeamManagementCommands>(); register.Type<ITeamManagementQueries>().ImplementedBy<TeamManagementQueries>(); register.Type<INewTeamParamsValidator>().ImplementedBy<NewTeamParamsValidator>(); }
public void RegisterServices(ContainerRegisterer register) { register.Type<MachineControllerFactory>(); register.Type<ReflectiveControllerTypeMap>(); register.Type(_controllerPreparerType); }