/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetActiveSessionsAssesmentsLearnersAsync(this ISessionApi operations, int courseId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetActiveSessionsAssesmentsLearnersWithHttpMessagesAsync(courseId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='createLiveLectureCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> CreateLiveLectureAsync(this ISessionApi operations, LMSApplicationCoreCommandsCreateLiveLectureCommand createLiveLectureCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateLiveLectureWithHttpMessagesAsync(createLiveLectureCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deactivateSessionCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSDomainCoreModelsSession> DeactivateSessionAsync(this ISessionApi operations, LMSApplicationCoreCommandsDeactivateSessionCommand deactivateSessionCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeactivateSessionWithHttpMessagesAsync(deactivateSessionCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='copiedJson'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> CopySessionsAsync(this ISessionApi operations, LMSApplicationCoreCommandsCopySessionsCommand copiedJson, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CopySessionsWithHttpMessagesAsync(copiedJson, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public FormsAuthenticationService(HttpContextBase httpContext, ICustomerApi customerRepository, ISessionApi sessionRepository) { _httpContext = httpContext; _expirationTimeSpan = FormsAuthentication.Timeout; _customerRepository = customerRepository; _sessionRepository = sessionRepository; }
//public const string ConfigType = "DomainSettings"; //public const string CurrencyKey = "DomainSettings-DefaultCurrencyCode"; //public const string LanguageKey = "DomainSettings-DefaultLanguageCulture"; //public const string CountryKey = "DomainSettings-CountryOfOrigin"; public SessionContext(HttpContextBase httpContext, IAuthenticationService authenticationService, ISessionApi sessionRepository, IConfigApi configRepository) { _httpContext = httpContext; _authenticationService = authenticationService; _sessionRepository = sessionRepository; _configRepository = configRepository; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='session'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelSessionDetailsViewModel UpdateSession(this ISessionApi operations, LMSApplicationCoreCommandsUpdateSessionCommand session, string lang) { return(operations.UpdateSessionAsync(session, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='session'> /// </param> /// <param name='lang'> /// </param> public static LMSDomainCoreModelsSession ActivateSession(this ISessionApi operations, LMSApplicationCoreCommandsActivateSessionCommand session, string lang) { return(operations.ActivateSessionAsync(session, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sessionId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelSessionUsersDetailsViewModel GetSessionUsersDetails(this ISessionApi operations, string sessionId, string lang) { return(operations.GetSessionUsersDetailsAsync(sessionId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sessionId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelSessionUsersDetailsViewModel> GetSessionUsersDetailsAsync(this ISessionApi operations, string sessionId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSessionUsersDetailsWithHttpMessagesAsync(sessionId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelAssessmentUpcomingActivitiesViewModel GetAssesmentsWithDueDate(this ISessionApi operations, int courseId, string lang) { return(operations.GetAssesmentsWithDueDateAsync(courseId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> /// <param name='childCode'> /// </param> public static object GetActiveSessionsAssesments(this ISessionApi operations, int courseId, string lang, string childCode = default(string)) { return(operations.GetActiveSessionsAssesmentsAsync(courseId, lang, childCode).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sessionOrderCommands'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <LMSApplicationCoreCommandsSessionOrderViewModel> > OrderSessionsAsync(this ISessionApi operations, LMSApplicationCoreCommandsSessionsOrderCommand sessionOrderCommands, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.OrderSessionsWithHttpMessagesAsync(sessionOrderCommands, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> public static object GetActiveSessionsAssesmentsLearners(this ISessionApi operations, int courseId, string lang) { return(operations.GetActiveSessionsAssesmentsLearnersAsync(courseId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='session'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelSessionDetailsViewModel> UpdateSessionAsync(this ISessionApi operations, LMSApplicationCoreCommandsUpdateSessionCommand session, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateSessionWithHttpMessagesAsync(session, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sessionOrderCommands'> /// </param> /// <param name='lang'> /// </param> public static IList <LMSApplicationCoreCommandsSessionOrderViewModel> OrderSessions(this ISessionApi operations, LMSApplicationCoreCommandsSessionsOrderCommand sessionOrderCommands, string lang) { return(operations.OrderSessionsAsync(sessionOrderCommands, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='copiedJson'> /// </param> /// <param name='lang'> /// </param> public static string CopySessions(this ISessionApi operations, LMSApplicationCoreCommandsCopySessionsCommand copiedJson, string lang) { return(operations.CopySessionsAsync(copiedJson, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelAssessmentUpcomingActivitiesViewModel> GetAssesmentsWithDueDateAsync(this ISessionApi operations, int courseId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAssesmentsWithDueDateWithHttpMessagesAsync(courseId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='createLiveLectureCommand'> /// </param> /// <param name='lang'> /// </param> public static object CreateLiveLecture(this ISessionApi operations, LMSApplicationCoreCommandsCreateLiveLectureCommand createLiveLectureCommand, string lang) { return(operations.CreateLiveLectureAsync(createLiveLectureCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <LMSApplicationCoreViewModelAssessmentNotGradedViewModel> > GetNotGradedAssesmentsAsync(this ISessionApi operations, int courseId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetNotGradedAssesmentsWithHttpMessagesAsync(courseId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> public static IList <LMSApplicationCoreViewModelAssessmentNotGradedViewModel> GetNotGradedAssesments(this ISessionApi operations, int courseId, string lang) { return(operations.GetNotGradedAssesmentsAsync(courseId, lang).GetAwaiter().GetResult()); }