2011-02-10 04:39:59 +00:00
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
|
|
|
|
namespace VideoGameQuotes.Api {
|
2011-02-10 21:04:13 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides an interface for identifying the current user
|
|
|
|
|
/// </summary>
|
2011-02-10 04:39:59 +00:00
|
|
|
|
public interface ICurrentUserProvider {
|
2011-02-10 21:04:13 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the user currently performing actions on the site, or <c>null</c>
|
|
|
|
|
/// if the user cannot be identified
|
|
|
|
|
/// </summary>
|
2011-02-10 04:39:59 +00:00
|
|
|
|
[CanBeNull]
|
|
|
|
|
User CurrentUser { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|