public static EbAzureNFClient Create(MobileAppConnection con)
        {
            if (con == null || con.IsNFConnectionsEmpty())
            {
                throw new Exception("Azure NotificationHub connections are empty");
            }

            Console.WriteLine("Azure connection string :" + con.AzureNFConnection);
            Console.WriteLine("Azure HubName :" + con.AzureNFHubName);

            return(new EbAzureNFClient(con.AzureNFConnection, con.AzureNFHubName));
        }
        public static EbAzureNFClient Create(string iSolutionId, IRedisClient redis)
        {
            EbConnectionFactory factory = new EbConnectionFactory(iSolutionId, redis);

            if (factory == null)
            {
                throw new Exception("No connection object for sid " + iSolutionId);
            }

            MobileAppConnection con = factory?.MobileAppConnection;

            if (con == null || con.IsNFConnectionsEmpty())
            {
                throw new Exception("Azure NotificationHub connections are empty");
            }

            Console.WriteLine("Azure connection string :" + con.AzureNFConnection);
            Console.WriteLine("Azure HubName :" + con.AzureNFHubName);

            return(new EbAzureNFClient(con.AzureNFConnection, con.AzureNFHubName));
        }