jellyfin/MediaBrowser.Api/HttpHandlers/UsersHandler.cs
LukePulverenti Luke Pulverenti luke pulverenti fbf8cc833c a few more async optimizations
2012-08-21 22:50:59 -04:00

17 lines
478 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Api.HttpHandlers
{
class UsersHandler : BaseJsonHandler<IEnumerable<User>>
{
protected override Task<IEnumerable<User>> GetObjectToSerialize()
{
return Task.FromResult<IEnumerable<User>>(Kernel.Instance.Users);
}
}
}