1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #if !BESTHTTP_DISABLE_SIGNALR_CORE && !BESTHTTP_DISABLE_WEBSOCKET
- using System;
- namespace BestHTTP.SignalRCore
- {
- 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);
-
-
-
-
- Uri PrepareUri(Uri uri);
- }
- }
- #endif
|