Пример #1
0
 /// <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");
 }
Пример #2
0
        /// <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");
        }
Пример #3
0
 /// <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");
 }
Пример #4
0
        /// <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");
        }
Пример #5
0
 /// <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");
 }
Пример #6
0
        /// <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");
        }