public MeetingSessionService(LmsCourseMeetingModel lmsCourseMeetingModel, ILogger logger, ICalendarExportService calendarExportService, ILmsLicense license, LmsCalendarEventServiceBase calendarEventService) { _lmsCourseMeetingModel = lmsCourseMeetingModel ?? throw new ArgumentNullException(nameof(lmsCourseMeetingModel)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _calendarExportService = calendarExportService; _license = license; _calendarEventService = calendarEventService; }
public BridgeMeetingSessionService(LmsCourseMeetingModel lmsCourseMeetingModel, ILogger logger, ICalendarExportService calendarExportService, IBridgeApi api, ILmsLicense license, LtiParamDTO param) { _lmsCourseMeetingModel = lmsCourseMeetingModel ?? throw new ArgumentNullException(nameof(lmsCourseMeetingModel)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _calendarExportService = calendarExportService; _license = license; _param = param; _api = api; }
public ICalController( ICalendarService calendarService, ICalendarValidator calendarValidator, ICalendarExportService calendarExportService, ICalendarImportService calendarImportService, ICacheService cacheService) { _calendarService = calendarService; _calendarValidator = calendarValidator; _calendarExportService = calendarExportService; _calendarImportService = calendarImportService; _cacheService = cacheService; }
public IMeetingSessionService GetMeetingSessionService(ILmsLicense lmsLicense, ILtiParam param) { var lmsCourseMeetingModel = IoC.Resolve <LmsCourseMeetingModel>(); var logger = IoC.Resolve <ILogger>(); ICalendarExportService calendarExportService = null; var lmsId = (LmsProviderEnum)lmsLicense.LmsProviderId; switch (lmsId) { // case LmsProviderEnum.Sakai: case LmsProviderEnum.Bridge: var container = IoC.Resolve <IWindsorContainer>(); //bad hack - until parameterized methods are added to IoC and IServiceLocator calendarExportService = IoC.Resolve <ICalendarExportService>(lmsId + "CalendarExportService"); return(container.Resolve <IMeetingSessionService>(lmsId + "SessionsService", new { license = lmsLicense, param, calendarExportService })); } return(new MeetingSessionService(lmsCourseMeetingModel, logger, calendarExportService, lmsLicense, GetCalendarEventService(lmsId, lmsLicense))); }