Esempio n. 1
0
        public static string AssetCount()
        {
            Debug.WriteLine("Migration Initiated...");

            IContentStore contentStore = new ContentStore("http://bd-convergence/", "C:\\igxsites\\cms103\\bd-convergence\\site\\App_Data\\xml");
            IReadonlyUser user         = contentStore.GetStartingUser(@"ingeniux\jallard");

            using (IUserWriteSession session = contentStore.OpenWriteSession(user))
            {
                ISite site = session.Site;
                return($"assets count:" + site.AssetsCount());
                //ISchemaManager schemaManager = session.SchemasManager;
                //ISchema newSchema = schemaManager.CreateSchema("oregon", "oregon", 3, false, true, "oregon");
            }
        }