/// <summary> /// Stops this instance. /// </summary> public void Stop() { if (Listener != null) { try { Listener.Stop(); if ((AccessPolicyServer != null) && (FlashAPEnabled)) { AccessPolicyServer.Stop(); } } catch { /* Ignore */ } } Listener = null; AccessPolicyServer = null; Log.Info("Alchemy Server Stopped"); }
/// <summary> /// Starts this instance. /// </summary> public void Start() { if (Listener == null) { try { AccessPolicyServer = new APServer(ListenerAddress, OriginHost, Port); if (FlashAPEnabled) { AccessPolicyServer.Start(); } Listener = new TcpListener(ListenerAddress, Port); ThreadPool.QueueUserWorkItem(Listen, null); } catch { /* Ignore */ } } Log.Info("Alchemy Server Started"); }
/// <summary> /// Stops this instance. /// </summary> public override void Stop() { try { if((AccessPolicyServer != null) && (FlashAPEnabled)) AccessPolicyServer.Stop(); } catch { /* Ignore */ } AccessPolicyServer = null; Log.Info("Alchemy Server Stopped"); }
/// <summary> /// Starts this instance. /// </summary> public override void Start() { base.Start(); if (AccessPolicyServer == null) { try { AccessPolicyServer = new APServer(ListenAddress, OriginHost, Port); if (FlashAPEnabled) { AccessPolicyServer.Start(); } } catch { /* Ignore */ } } Log.Info("Alchemy Server Started"); }
/// <summary> /// Stops this instance. /// </summary> public void Stop() { if (Listener != null) { try { Listener.Stop(); if((AccessPolicyServer != null) && (FlashAPEnabled)) AccessPolicyServer.Stop(); } catch { /* Ignore */ } } Listener = null; AccessPolicyServer = null; Log.Info("Alchemy Server Stopped"); }