상속: ServiceStack.WebHost.Endpoints.AppHostHttpListenerBase
예제 #1
0
        public static void StartService(IEnumerable<string> activeModules) {
            if (_service != null) {
                StopService();
            }

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