Exemple #1
0
        public void Stop()
        {
            HttpServiceListener.Dispose();


            try
            {
                if (Silo != null && Silo.IsStarted)
                {
                    Silo.StopOrleansSilo();
                }
            }
            catch (System.Net.Sockets.SocketException)
            {
                //Orleans 1.3.1 thorws this exception most of the time
            }
            finally
            {
                try
                {
                    GrainClient.Uninitialize();
                }
                catch (Exception exc)
                {
                    Log.Warn("Exception Uninitializing grain client", exception: exc);
                }
            }
        }
Exemple #2
0
        public void Stop()
        {
            HttpServiceListener.Dispose();

            if (Silo != null && Silo.IsStarted)
            {
                Silo.StopOrleansSilo();
            }

            try
            {
                GrainClient.Uninitialize();
            }
            catch (Exception exc)
            {
                Log.Warn("Exception Uninitializing grain client", exception: exc);
            }
        }