예제 #1
0
        protected override void Load(ContainerBuilder builder)
        {
            base.Load(builder);

            var competitionConfiguration = new CompetitionInfo();

            ConfigureCompetitionInfo(competitionConfiguration);

            var competition = new CompetitionRegistration(competitionConfiguration, ConfigureFactory());

            builder
            .RegisterInstance(competition)
            .As <ICompetitionRegistration>()
            .SingleInstance();
        }
예제 #2
0
 protected abstract void ConfigureCompetitionInfo(CompetitionInfo competitionInfo);