public static void StartService(IEnumerable<string> activeModules) { if (_service != null) { StopService(); } _service = new RestService("restservice", _urls, _commands, activeModules); _service.Start(); }
public static void StopService() { lock (typeof(RestService)) { _service.Dispose(); _service = null; } }
public override void OnAuthenticated(IServiceBase authService, IAuthSession session, IOAuthTokens tokens, Dictionary <string, string> authInfo) { RestService.OnAuthenticated(authService, session, tokens, authInfo, SessionExpiry); }
public override bool TryAuthenticate(IServiceBase authService, string userName, string password) { return(RestService.TryAuthenticate(authService, userName, password)); }