Example #1
0
        public async Task AddSolution(string solutionUrl, ValidateSidResponse response)
        {
            try
            {
                string sid = solutionUrl.Split(CharConstants.DOT)[0];

                SolutionInfo info = new SolutionInfo
                {
                    SolutionName   = sid,
                    RootUrl        = solutionUrl,
                    SolutionObject = response.SolutionObj,
                    SignUpPage     = response.SignUpPage
                };

                await solutionService.SetDataAsync(info);

                await solutionService.ClearCached();

                await solutionService.CreateDB(sid);

                await solutionService.CreateDirectory();

                if (response.Logo != null)
                {
                    solutionService.SaveLogo(sid, response.Logo);
                }
            }
            catch (Exception ex)
            {
                EbLog.Error(ex.Message);
            }
        }