예제 #1
0
        protected override async void OnStart()
        {
            AppCenterHelper.Start();
            AppCenterHelper.TrackEvent("App Started");

#if DEBUG
            var res = await LocalDbHelper.Instance.GetAllSavedEnvironmentsAsync();

            if (res.Count == 0)
            {
                /* The following can be used when debugging to input a sample environment
                 *
                 * var environment = new BlockchainEnvironment
                 * {
                 *  ResourceId = "YOUR RESOURCE ID",
                 *  ClientId = "YOUR CLIENT ID",
                 *  ReturnUrl = "YOUR RETURN URI",
                 *  SiteUrl = "YOUR API ENDPOINT",
                 *  TenantId = "YOUR AD TENANT INFORMATION",
                 *  NickName = "A NICKNAME FOR THE ENV"
                 * };
                 *
                 * await LocalDbHelper.Instance.SaveEnvironmentAsync(environment);
                 */
            }
#endif
        }