Skip to content

Commit 28e6b6f

Browse files
Merge pull request #6254 from syncfusion-content/966893-License-Registration-hf
966893: Included the license key registration for webapp.
2 parents 5eb78f8 + 159ba0d commit 28e6b6f

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

blazor/getting-started/license-key/how-to-register-in-an-application.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ N> * Place the license key between double quotes. Also, ensure that Syncfusion.
2424

2525
I> Syncfusion<sup style="font-size:70%">&reg;</sup> license keys can be validated during the Continuous Integration (CI) processes to ensure proper licensing and prevent licensing errors during deployment. Refer to the [CI License Validation](https://blazor.syncfusion.com/documentation/getting-started/license-key/ci-license-validation) section for detailed instructions on how to implement it.
2626

27-
## Blazor Web App
27+
| Blazor Mode | Project(s) to Register License Key | File(s) to Register License Key |
28+
|---------------------------------------|-----------------------------------------|-----------------------------------------|
29+
| Blazor Web App (Interactive Auto) | Server & Client | `Server/Program.cs`, `Client/Program.cs`|
30+
| Blazor Web App (Interactive Server) | Server | `Server/Program.cs` |
31+
| Blazor Web App (Interactive WASM) | Server & Client | `Server/Program.cs`, `Client/Program.cs`|
32+
| Blazor Standalone WebAssembly App | Client | `Program.cs` |
2833

29-
Open **~/Program.cs** file and register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor license key in the Blazor web app.
34+
## Blazor Web App (Interactive Auto)
3035

36+
Open **~/Program.cs** file in both the server and client projects of a Blazor Web App(Interactive Auto) and register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor license key.
3137
{% tabs %}
3238

3339
{% highlight C# tabtitle="Blazor Web App" hl_lines="1 2" %}
@@ -39,9 +45,9 @@ Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY
3945

4046
{% endtabs %}
4147

42-
## Blazor Server App
48+
## Blazor Web App (Interactive Server)
4349

44-
* For .NET 8 and .NET 9 app, open the **~/Program.cs** file and register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key.
50+
* For .NET 8 and .NET 9, open the **~/Program.cs** file and register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key.
4551

4652
{% tabs %}
4753

@@ -63,7 +69,21 @@ if (!app.Environment.IsDevelopment())
6369

6470
{% endtabs %}
6571

66-
## Blazor WebAssembly App
72+
## Blazor Web App (Interactive WebAssembly)
73+
74+
Open **~/Program.cs** file in both the server and client projects of a Blazor Web App(Interactive WebAssembly) and register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor license key.
75+
{% tabs %}
76+
77+
{% highlight C# tabtitle="Blazor Web App" hl_lines="1 2" %}
78+
79+
//Register Syncfusion license
80+
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
81+
82+
{% endhighlight %}
83+
84+
{% endtabs %}
85+
86+
## Blazor Standalone WebAssembly App
6787

6888
Open **~/Program.cs** file and register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor license key in the client web app.
6989

0 commit comments

Comments
 (0)