Beispiel #1
0
        public JObject Export()
        {
            string sPath  = ((Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest) this.Request).Path;
            string sQuery = ((Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest) this.Request).QueryString.ToString();

            try
            {
                var    query   = QueryHelpers.ParseQuery(sQuery);
                string sTarget = query.FirstOrDefault(t => t.Key.ToLower() == "url").Value;
                if (!string.IsNullOrEmpty(sTarget))
                {
                    Inv.Export(sTarget);
                }
                else
                {
                    Inv.Export("http://localhost:5000");
                }
            }
            catch { }

            return(null);
        }