12345678910111213141516171819202122232425262728293031323334353637 |
- #if !BESTHTTP_DISABLE_SIGNALR
- namespace BestHTTP.SignalR.Authentication
- {
- public delegate void OnAuthenticationSuccededDelegate(IAuthenticationProvider provider);
- public delegate void OnAuthenticationFailedDelegate(IAuthenticationProvider provider, string reason);
- public interface IAuthenticationProvider
- {
-
-
-
- bool IsPreAuthRequired { get; }
-
-
-
- event OnAuthenticationSuccededDelegate OnAuthenticationSucceded;
-
-
-
- event OnAuthenticationFailedDelegate OnAuthenticationFailed;
-
-
-
-
- void StartAuthentication();
-
-
-
- void PrepareRequest(HTTPRequest request, RequestTypes type);
- }
- }
- #endif
|