Esempio n. 1
0
        /// <summary>
        /// Restarts the NodeTypeManager without sending any distributed action.
        /// Do not call this method explicitly, the system will call it if necessary (when the reset is triggered by an another instance).
        /// </summary>
        private void RestartPrivate()
        {
            SnLog.WriteInformation("NodeTypeManager.Restart executed.", EventId.RepositoryRuntime,
                                   properties: new Dictionary <string, object> {
                { "AppDomain", AppDomain.CurrentDomain.FriendlyName }
            });
            NodeObserver.FireOnReset();

            lock (_lock)
            {
                Providers.Instance.DataStore.Reset();
                LoadPrivate();
            }
        }
Esempio n. 2
0
 private static void OnReset()
 {
     NodeObserver.FireOnReset(Reset);
 }