コード例 #1
0
ファイル: Session.cs プロジェクト: jackallard17/IGX-CMAPI
        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");
            }
        }