Example #1
0
        private string GetCurrentEnv()
        {
            var env =
#if RELEASE
                "prod";
#else
                "prod";
#endif

            try
            {
                if (applicationStore.Properties.ContainsKey("env"))
                {
                    env = applicationStore.Properties["env"].ToString();
                }
                else
                {
                    applicationStore.Properties["env"] = env;
                    applicationStore.SavePropertiesAsync();
                }
            }
            catch
            {
            }

            return(env);
        }