You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
477 B
19 lines
477 B
3 months ago
|
using Kean.Domain.Identity.Models;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Kean.Domain.Identity.SharedServices
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 获取会话
|
||
|
/// </summary>
|
||
|
public sealed class GetSession
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 处理程序
|
||
|
/// </summary>
|
||
|
/// <param name="token">令牌</param>
|
||
|
/// <returns>会话</returns>
|
||
|
public Task<string> Handler(string token) => Task.FromResult<string>(new Session(token));
|
||
|
}
|
||
|
}
|