Esempio n. 1
0
        public async Task <string> SubmitAquaTheme([FromBody] Dictionary <string, string> props)
        {
            var aqua = new Aqua(props["SiteName"]);

            aqua.FillProps(props);
            var res = await service.GenerateHtmlResponse(aqua);

            return(res);
        }
Esempio n. 2
0
        public async Task <string> UpdateAquaTheme([FromBody] Dictionary <string, string> props)
        {
            var aqua = new Aqua(props["SiteName"] as string);

            aqua.FillProps(props);
            var res = await service.GenerateImageForHTML(aqua.TransformText());

            var dict = JsonConvert.DeserializeObject <Dictionary <string, string> >(res);

            return(dict["url"]);
        }
Esempio n. 3
0
 public static IEnumerable<MemberInfo> GetMember(this Type type, string name, Aqua.TypeSystem.MemberTypes memberType, BindingFlags bindingFlags)
 {
     var t = (MemberTypes)memberType;
     return type.GetMember(name, t, bindingFlags);
 }