Exemplo n.º 1
0
        private static void ResetPrivate()
        {
            lock (_syncRoot)
            {
                SnLog.WriteInformation("ContentTypeManager.Reset executed.", EventId.RepositoryRuntime,
                                       properties: new Dictionary <string, object> {
                    { "AppDomain", AppDomain.CurrentDomain.FriendlyName }
                });

                Providers.Instance.SetProvider(ContentTypeManagerProviderKey, null);
                _indexingInfoTable = new Dictionary <string, IPerFieldIndexingInfo>();
                ContentType.OnTypeSystemRestarted();
            }
        }
Exemplo n.º 2
0
        private static void ResetPrivate()
        {
            lock (_syncRoot)
            {
                SnLog.WriteInformation("ContentTypeManager.Reset executed.", EventId.RepositoryRuntime,
                                       properties: new Dictionary <string, object> {
                    { "AppDomain", AppDomain.CurrentDomain.FriendlyName }
                });

                // Do not call ActiveSchema.Reset();
                _current           = null;
                _indexingInfoTable = new Dictionary <string, PerFieldIndexingInfo>();
                ContentType.OnTypeSystemRestarted();
            }
        }