SenseNet.ContentRepository.Storage.Schema.NodeTypeManager.RestartPrivate C# (CSharp) Метод

RestartPrivate() приватный статический Метод

Restarts the NodeTypeManager without sending an ApplicationMessage. Do not call this method explicitly, the system will call it if neccessary (when the reset is triggered by an another instance).
private static RestartPrivate ( ) : void
Результат void
        private static void RestartPrivate()
        {
            Logger.WriteInformation("NodeTypeManager.Restart executed.", Logger.Categories(), 
                new Dictionary<string, object> { { "AppDomain", AppDomain.CurrentDomain.FriendlyName } });
            OnReset();
            lock (_lock)
            {
                DataProvider.Current.Reset();
                _current = null;
            }
        }

Usage Example

Пример #1
0
            public override void DoAction(bool onRemote, bool isFromMe)
            {
                // Local echo of my action: Return without doing anything
                if (onRemote && isFromMe)
                {
                    return;
                }

                NodeTypeManager.RestartPrivate();
            }
All Usage Examples Of SenseNet.ContentRepository.Storage.Schema.NodeTypeManager::RestartPrivate