Spotify.NET/SpotifyAPI.Web.Auth/IAuthServer.cs
2020-05-15 20:06:24 +02:00

20 lines
401 B
C#

using System;
using System.Threading.Tasks;
namespace SpotifyAPI.Web.Auth
{
public interface IAuthServer : IDisposable
{
event Func<object, AuthorizationCodeResponse, Task> AuthorizationCodeReceived;
event Func<object, ImplictGrantResponse, Task> ImplictGrantReceived;
Task Start();
Task Stop();
Uri BuildLoginUri(LoginRequest request);
Uri RedirectUri { get; }
}
}