Skip to content

Commit 394e3d0

Browse files
891562: Add changes to only move the showcase app that's in live and then the updated README.md file's changes
1 parent e012f35 commit 394e3d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+102
-892
lines changed

Diff for: Common/BlazorServerCommon_NET6.csproj

-28
This file was deleted.

Diff for: Common/BlazorWasmCommon_NET6.csproj

-28
This file was deleted.

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ The samples require the following requirements to run.
1212

1313
### Run
1414

15-
* Clone this repository.
16-
* Open the project in Visual Studio 2022.
17-
* Run the demo.
15+
1. Clone this repository.
16+
2. Open the `.sln` file in VS 2022.
17+
3. Click the green run button in the toolbar.
1818

1919
## Demo
2020

Diff for: Server/App.razor

-10
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: Server/LogicCircuit.csproj

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10-
<DefineConstants>$(DefineConstants)TRACE;SERVER</DefineConstants>
10+
<DefineConstants>$(DefineConstants)TRACE;SERVER</DefineConstants>
1111
</PropertyGroup>
1212

1313
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
14-
<DefineConstants>$(DefineConstants)TRACE;SERVER</DefineConstants>
14+
<DefineConstants>$(DefineConstants)TRACE;SERVER</DefineConstants>
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<Compile Remove="Shared\**" />
19-
<Content Remove="Shared\**" />
20-
<EmbeddedResource Remove="Shared\**" />
21-
<None Remove="Shared\**" />
18+
<Compile Remove="Shared\**" />
19+
<Content Remove="Shared\**" />
20+
<EmbeddedResource Remove="Shared\**" />
21+
<None Remove="Shared\**" />
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<ProjectReference Include="..\..\common\BlazorServerCommon_NET6.csproj" />
25+
<ProjectReference Include="..\common\BlazorServerCommon_NET8.csproj" />
2626
</ItemGroup>
2727

2828
</Project>

Diff for: Server/LogicCircuit.csproj.user

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup />
4-
<ItemGroup>
5-
<EmbeddedResource Update="Resources\SfResources.de.resx">
6-
<SubType>Designer</SubType>
7-
</EmbeddedResource>
8-
</ItemGroup>
3+
<PropertyGroup>
4+
<ActiveDebugProfile>https</ActiveDebugProfile>
5+
</PropertyGroup>
96
</Project>

Diff for: Server/LogicCircuit.sln

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.7.34221.43
4+
VisualStudioVersion = 17.9.34310.174
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LogicCircuit", "LogicCircuit.csproj", "{5B76181D-A690-4020-A824-B33CB991DC6D}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LogicCircuit", "LogicCircuit.csproj", "{23D34236-56EA-43EF-8A64-3F5136853A1D}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorServerCommon_NET6", "..\..\common\BlazorServerCommon_NET6.csproj", "{F9413B4A-8FFE-4E9A-9427-3A234D0F6EF9}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorServerCommon_NET8", "..\common\BlazorServerCommon_NET8.csproj", "{E02532F0-2A9C-4764-BBBB-1AE32DA650EF}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1212
Debug|Any CPU = Debug|Any CPU
1313
Release|Any CPU = Release|Any CPU
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{5B76181D-A690-4020-A824-B33CB991DC6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{5B76181D-A690-4020-A824-B33CB991DC6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{5B76181D-A690-4020-A824-B33CB991DC6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
19-
{5B76181D-A690-4020-A824-B33CB991DC6D}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{F9413B4A-8FFE-4E9A-9427-3A234D0F6EF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{F9413B4A-8FFE-4E9A-9427-3A234D0F6EF9}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{F9413B4A-8FFE-4E9A-9427-3A234D0F6EF9}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{F9413B4A-8FFE-4E9A-9427-3A234D0F6EF9}.Release|Any CPU.Build.0 = Release|Any CPU
16+
{23D34236-56EA-43EF-8A64-3F5136853A1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{23D34236-56EA-43EF-8A64-3F5136853A1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{23D34236-56EA-43EF-8A64-3F5136853A1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{23D34236-56EA-43EF-8A64-3F5136853A1D}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{E02532F0-2A9C-4764-BBBB-1AE32DA650EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E02532F0-2A9C-4764-BBBB-1AE32DA650EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E02532F0-2A9C-4764-BBBB-1AE32DA650EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{E02532F0-2A9C-4764-BBBB-1AE32DA650EF}.Release|Any CPU.Build.0 = Release|Any CPU
2424
EndGlobalSection
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ExtensibilityGlobals) = postSolution
29-
SolutionGuid = {CF148846-B334-48E6-B9A0-D2FF1229092D}
29+
SolutionGuid = {EC28E286-24C0-4E74-A149-AC3073077EA8}
3030
EndGlobalSection
3131
EndGlobal

Diff for: Server/Pages/_Host.cshtml

-64
This file was deleted.

Diff for: Server/Program.cs

+55-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,59 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
6-
using Microsoft.AspNetCore;
7-
using Microsoft.AspNetCore.Hosting;
8-
using Microsoft.Extensions.Configuration;
9-
using Microsoft.Extensions.Hosting;
10-
using Microsoft.Extensions.Logging;
1+
using LogicCircuit.Components;
2+
using Syncfusion.Blazor;
3+
using LogicCircuit.Shared;
4+
using Microsoft.AspNetCore.Localization;
5+
using System.Globalization;
6+
using Syncfusion.Blazor.Popups;
7+
using Microsoft.Extensions.Options;
118

12-
namespace LogicCircuit
13-
{
14-
#pragma warning disable CA1052 // Static holder types should be Static or NotInheritable
15-
public class Program
16-
#pragma warning restore CA1052 // Static holder types should be Static or NotInheritable
17-
{
18-
public static void Main(string[] args)
19-
{
20-
CreateHostBuilder(args).Build().Run();
21-
}
9+
var builder = WebApplication.CreateBuilder(args);
2210

23-
public static IHostBuilder CreateHostBuilder(string[] args) =>
24-
Host.CreateDefaultBuilder(args)
25-
.ConfigureWebHostDefaults(webBuilder =>
11+
// Add services to the container.
12+
builder.Services.AddRazorComponents()
13+
.AddInteractiveServerComponents();
14+
builder.Services.AddSignalR(e =>
15+
{
16+
e.MaximumReceiveMessageSize = 102400000;
17+
});
18+
builder.Services.AddRazorPages();
19+
builder.Services.AddScoped<SfDialogService>();
20+
builder.Services.AddServerSideBlazor();
21+
builder.Services.AddSyncfusionBlazor();
22+
builder.Services.AddScoped<SampleService>();
23+
// Register the Syncfusion locale service to customize the SyncfusionBlazor component locale culture
24+
//services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(SyncfusionLocalizer));
25+
builder.Services.Configure<RequestLocalizationOptions>(options =>
26+
{
27+
// Define the list of cultures your app will support
28+
List<CultureInfo> supportedCultures = new List<CultureInfo>()
2629
{
27-
webBuilder.UseStartup<Startup>();
28-
});
29-
}
30+
new CultureInfo("en-US"),
31+
new CultureInfo("de"),
32+
new CultureInfo("fr"),
33+
new CultureInfo("ar"),
34+
new CultureInfo("zh"),
35+
};
36+
// Set the default culture
37+
options.DefaultRequestCulture = new RequestCulture("en-US");
38+
options.SupportedCultures = supportedCultures;
39+
options.SupportedUICultures = supportedCultures;
40+
});
41+
var app = builder.Build();
42+
43+
// Configure the HTTP request pipeline.
44+
if (!app.Environment.IsDevelopment())
45+
{
46+
app.UseExceptionHandler("/Error", createScopeForErrors: true);
47+
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
48+
app.UseHsts();
3049
}
50+
51+
app.UseHttpsRedirection();
52+
53+
app.UseStaticFiles();
54+
app.UseAntiforgery();
55+
56+
app.MapRazorComponents<App>()
57+
.AddInteractiveServerRenderMode();
58+
59+
app.Run();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: Server/Shared/SampleComponentBase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class SampleBaseComponent : ComponentBase
1515
[Inject]
1616
protected SampleService Service { get; set; }
1717

18+
// internal SampleData SampleDetails { get; set; } = new SampleData();
1819
protected async override void OnAfterRender(bool FirstRender)
1920
{
2021
await Task.Delay(3000).ConfigureAwait(true);

0 commit comments

Comments
 (0)