Update of documentation WebAssembly

In the documentation here - https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly/

We have this paragraph:
using Syncfusion.Blazor;

namespace WebApplication1
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            ....
            ....
            builder.Services.AddSyncfusionBlazor();
            await builder.Build.RunAsync();
        }
    }
}


But the right one is:
  public class Program
    {
        public static async Task Main(string[] args)
        {
            var builder = WebAssemblyHostBuilder.CreateDefault(args);
            builder.RootComponents.Add<App>("app");

            builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

            await builder.Build().RunAsync();
            
            builder.Services.AddSyncfusionBlazor();
            await builder.Build().RunAsync();
        }
    }

So you have to change await builder.Build().RunAsync();

As this is generated code, i dont think you need to do it now, but i can see someone changing it, and then having troubles.

2 Replies 1 reply marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team June 15, 2020 11:51 AM UTC

Hi Stefan, 

Thank you for your interest in Syncfusion Blazor components.  

We have checked the reported documentation changes and it will be available with our weekly document refresh before end of this week. 

Please get back to us if you need any further assistance on this. 

Regards, 
Jesus Arockia Sankaran S  



MK Muthukumar Kannan Syncfusion Team December 30, 2020 11:23 AM UTC

Hi Stefan,

Sorry for the delay in getting back to you.

As we promised, we have already corrected the reported documentation changes with the “Getting Started - WebAssembly” section and refreshed it in live. Please refer to the below link.

https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly/#adding-syncfusion-blazor-component-and-running-the-application
 

Please let us know if you have any concerns.

Regards,
Muthukumar K
 


Marked as answer
Loader.
Up arrow icon