コード例 #1
0
 public StructuresController(IDeviceRepository deviceRepository,
     ISignboardRepository signboardRepository,
     ISlideshowRepository slideshowRepository,
     IWidgetDefinitionRepository widgetDefinitionRepository,
     IAnnouncementRepository announcementRepository,
     IDiagnosticsComponent diagnosticsComponent,
     ILoggingComponent loggingComponent)
 {
     DeviceRepository = deviceRepository;
     SignboardRepository = signboardRepository;
     SlideshowRepository = slideshowRepository;
     WidgetDefinitionRepository = widgetDefinitionRepository;
     AnnouncementRepository = announcementRepository;
     DiagnosticsComponent = diagnosticsComponent;
     LoggingComponent = loggingComponent;
 }
コード例 #2
0
ファイル: BaseController.cs プロジェクト: hmnzr/PSAEC-Website
 protected BaseController(IControllerData data)
 {
     this.accountRepository = data.AccountRepository;
     this.formsAuthentication = data.FormsAuthentication;
     this.articlesRepository = data.ArticlesRepository;
     this.staticPagesRepository = data.StaticPagesRepository;
     this.filesRepository = data.FilesRepository;
     this.lecturersRepository = data.LecturersRepository;
     this.eventsRepository = data.EventsRepository;
     this.settingsRepository = data.SettingsRepository;
     this.committeeRepository = data.CommitteeRepository;
     this.slideshowRepository = data.SlideshowRepository;
     this.albumRepository = data.AlbumRepository;
     this.galleryRepository = data.GalleryRepository;
     this.feedbackRepository = data.FeedbackRepository;
     this.sessionsRepository = data.SessionsRepository;
     this.bannersRepository = data.BannersRepository;
 }
 public ControllerData(IFormsAuthentication formsAuthentication, IAccountRepository accountRepository, IArticlesRepository articlesRepository,
                       IStaticPagesRepository staticPagesRepository, IFilesRepository filesRepository, ILecturersRepository lecturersRepository,
                       IEventsRepository eventsRepository, ISettingsRepository settingsRepository, ICommitteeRepository committeeRepository,
                       ISlideshowRepository slideshowRepository, IAlbumRepository albumRepository, IGalleryRepository galleryRepository,
                       IFeedbackRepository feedbackRepository, ISessionsRepository sessionsRepository, IBannersRepository bannersRepository)
 {
     this.FormsAuthentication   = formsAuthentication;
     this.AccountRepository     = accountRepository;
     this.ArticlesRepository    = articlesRepository;
     this.StaticPagesRepository = staticPagesRepository;
     this.FilesRepository       = filesRepository;
     this.LecturersRepository   = lecturersRepository;
     this.EventsRepository      = eventsRepository;
     this.SettingsRepository    = settingsRepository;
     this.CommitteeRepository   = committeeRepository;
     this.SlideshowRepository   = slideshowRepository;
     this.AlbumRepository       = albumRepository;
     this.GalleryRepository     = galleryRepository;
     this.FeedbackRepository    = feedbackRepository;
     this.SessionsRepository    = sessionsRepository;
     this.BannersRepository     = bannersRepository;
 }
コード例 #4
0
ファイル: ControllerData.cs プロジェクト: hmnzr/PSAEC-Website
 public ControllerData(IFormsAuthentication formsAuthentication, IAccountRepository accountRepository, IArticlesRepository articlesRepository,
     IStaticPagesRepository staticPagesRepository, IFilesRepository filesRepository, ILecturersRepository lecturersRepository,
     IEventsRepository eventsRepository, ISettingsRepository settingsRepository, ICommitteeRepository committeeRepository,
     ISlideshowRepository slideshowRepository, IAlbumRepository albumRepository, IGalleryRepository galleryRepository,
     IFeedbackRepository feedbackRepository, ISessionsRepository sessionsRepository, IBannersRepository bannersRepository)
 {
     this.FormsAuthentication = formsAuthentication;
     this.AccountRepository = accountRepository;
     this.ArticlesRepository = articlesRepository;
     this.StaticPagesRepository = staticPagesRepository;
     this.FilesRepository = filesRepository;
     this.LecturersRepository = lecturersRepository;
     this.EventsRepository = eventsRepository;
     this.SettingsRepository = settingsRepository;
     this.CommitteeRepository = committeeRepository;
     this.SlideshowRepository = slideshowRepository;
     this.AlbumRepository = albumRepository;
     this.GalleryRepository = galleryRepository;
     this.FeedbackRepository = feedbackRepository;
     this.SessionsRepository = sessionsRepository;
     this.BannersRepository = bannersRepository;
 }
コード例 #5
0
 public ValidSlideshowIdAttribute()
     : base("Slideshow does not exist.")
 {
     SlideshowRepository = (ISlideshowRepository)Startup.HttpConfiguration.DependencyResolver.GetService(typeof(ISlideshowRepository));
 }
コード例 #6
0
 public WidgetsController(ISlideshowRepository slideshowRepository)
 {
     SlideshowRepository = slideshowRepository;
 }
コード例 #7
0
 public ScheduledSlideshowsController(ISlideshowRepository slideshowRepository, ISignboardRepository signboardRepository)
 {
     SlideshowRepository = slideshowRepository;
     SignboardRepository = signboardRepository;
 }
コード例 #8
0
 public ParametersController(ISlideshowRepository slideshowRepository, IWidgetDefinitionRepository widgetDefinitionRepository)
 {
     SlideshowRepository = slideshowRepository;
     WidgetDefinitionRepository = widgetDefinitionRepository;
 }