예제 #1
0
        public static string[] GetAllowedOrigins(EnvironmentType environmentType)
        {
            var sufixo = environmentType.GetDescription();

            List <string> listAllowedOrigins = new List <string>
            {
                "http://localhost:4200",
                "https://localhost:4200",
                "http://127.0.0.1:4200",
                "https://127.0.0.1:4200",
                $"https://DOMINIO-{sufixo}.azurewebsites.net"
            };

            if (environmentType == EnvironmentType.Production)
            {
                listAllowedOrigins.Add("https://DOMINIO.com.br");
            }

            return(listAllowedOrigins.ToArray());
        }
예제 #2
0
 public static string NotificationTitle(EnvironmentType workingType, MarketOrderType marketOrderType, string symbol)
 => $"[{workingType.GetDescription()}] => {marketOrderType.GetDescription()} [{symbol}]";