IAuthenticationRepository.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using MediaBrowser.Model.Querying;
  2. using System.Threading;
  3. namespace MediaBrowser.Controller.Security
  4. {
  5. public interface IAuthenticationRepository
  6. {
  7. /// <summary>
  8. /// Creates the specified information.
  9. /// </summary>
  10. /// <param name="info">The information.</param>
  11. /// <param name="cancellationToken">The cancellation token.</param>
  12. /// <returns>Task.</returns>
  13. void Create(AuthenticationInfo info, CancellationToken cancellationToken);
  14. /// <summary>
  15. /// Updates the specified information.
  16. /// </summary>
  17. /// <param name="info">The information.</param>
  18. /// <param name="cancellationToken">The cancellation token.</param>
  19. /// <returns>Task.</returns>
  20. void Update(AuthenticationInfo info, CancellationToken cancellationToken);
  21. /// <summary>
  22. /// Gets the specified query.
  23. /// </summary>
  24. /// <param name="query">The query.</param>
  25. /// <returns>QueryResult{AuthenticationInfo}.</returns>
  26. QueryResult<AuthenticationInfo> Get(AuthenticationInfoQuery query);
  27. /// <summary>
  28. /// Gets the specified identifier.
  29. /// </summary>
  30. /// <param name="id">The identifier.</param>
  31. /// <returns>AuthenticationInfo.</returns>
  32. AuthenticationInfo Get(string id);
  33. }
  34. }