Spotify.NET/SpotifyAPI.Web.Auth/IAuthServer.cs
2020-05-15 22:02:54 +02:00

20 lines
397 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 BaseUri { get; }
}
}