Exemplo n.º 1
0
        public async Task <IHtmlContentView> CreateHtmlContentViewAsync(string viewTitle)
        {
            HtmlContentView htmlView =
                new HtmlContentView(
                    viewTitle,
                    languageServer);

            await htmlView.CreateAsync();

            this.AddView(htmlView);

            return(htmlView);
        }
        public async Task <IHtmlContentView> CreateHtmlContentViewAsync(string viewTitle)
        {
            HtmlContentView htmlView =
                new HtmlContentView(
                    viewTitle,
                    this.messageSender,
                    this.logger);

            await htmlView.CreateAsync();

            this.AddView(htmlView);

            return(htmlView);
        }
Exemplo n.º 3
0
 public Task SetContentAsync(HtmlContent htmlContent) =>
 languageServer.SendRequestAsync(
     SetHtmlContentViewRequest.Method,
     new SetHtmlContentViewRequest
 {
     Id          = Id,
     HtmlContent = new HtmlContent()
     {
         BodyContent     = htmlContent.BodyContent,
         JavaScriptPaths = HtmlContentView.GetUriPaths(htmlContent.JavaScriptPaths),
         StyleSheetPaths = HtmlContentView.GetUriPaths(htmlContent.StyleSheetPaths)
     }
 }
     );