Esempio n. 1
0
        public static string GetActualExecutionPlanHtmlD3Sankey(this ExecutionStatus executionStatus)
        {
            var    json = executionStatus.GetActualExecutionPlanJsonD3Sankey();
            string file;

            var assembly = typeof(ExecutionStatusEx).Assembly;

            using (var stream = assembly.GetManifestResourceStream("Paillave.Etl.ExecutionPlan.Resources.ActualExecutionPlan.D3Sankey.html"))
                using (var reader = new StreamReader(stream))
                    file = reader.ReadToEnd();

            string html = file.Replace("'<<SANKEY_STATISTICS>>'", json);

            return(html);
        }