Exemplo n.º 1
0
 public MarksController(EfDbContext context, UserManager <DbUser> userManager,
                        IJwtTokenService jwtTokenService, IMarks marks)
 {
     _context         = context;
     _userManager     = userManager;
     _jwtTokenService = jwtTokenService;
     _marks           = marks;
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ReadAsync(this IMarks operations, string id, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.ReadWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false);
 }
Exemplo n.º 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 public static void Read(this IMarks operations, string id)
 {
     Task.Factory.StartNew(s => ((IMarks)s).ReadAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='data'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task CreateAsync(this IMarks operations, Data data = default(Data), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.CreateWithHttpMessagesAsync(data, null, cancellationToken).ConfigureAwait(false);
 }
Exemplo n.º 5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='data'>
 /// </param>
 public static void Create(this IMarks operations, Data data = default(Data))
 {
     Task.Factory.StartNew(s => ((IMarks)s).CreateAsync(data), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 6
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='page'>
 /// </param>
 /// <param name='competence'>
 /// </param>
 /// <param name='project'>
 /// </param>
 /// <param name='judge'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ListAsync(this IMarks operations, string page = default(string), string competence = default(string), string project = default(string), string judge = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.ListWithHttpMessagesAsync(page, competence, project, judge, null, cancellationToken).ConfigureAwait(false);
 }
Exemplo n.º 7
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='page'>
 /// </param>
 /// <param name='competence'>
 /// </param>
 /// <param name='project'>
 /// </param>
 /// <param name='judge'>
 /// </param>
 public static void List(this IMarks operations, string page = default(string), string competence = default(string), string project = default(string), string judge = default(string))
 {
     Task.Factory.StartNew(s => ((IMarks)s).ListAsync(page, competence, project, judge), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 8
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='data'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PartialAsync(this IMarks operations, string id, Data data = default(Data), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.PartialWithHttpMessagesAsync(id, data, null, cancellationToken).ConfigureAwait(false);
 }