Skip to content

Commit 49d06b5

Browse files
committed
adding more
1 parent f9e72ab commit 49d06b5

File tree

145 files changed

+113716
-0
lines changed

Some content is hidden

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

145 files changed

+113716
-0
lines changed

src/NetCore2Blockly/NetCore2Blockly.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCore2BlocklyNew", "NetCo
2727
EndProject
2828
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeploySampleSiteAzure", "DeploySampleSiteAzure\DeploySampleSiteAzure.csproj", "{11787BD7-05F3-4CB4-AF6B-FB6DBD88A5E7}"
2929
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestIntegration9", "TestIntegration9\TestIntegration9.csproj", "{CFA655F6-F116-4D83-B424-EB3FD1975787}"
31+
EndProject
3032
Global
3133
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3234
Debug|Any CPU = Debug|Any CPU
@@ -61,13 +63,18 @@ Global
6163
{11787BD7-05F3-4CB4-AF6B-FB6DBD88A5E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
6264
{11787BD7-05F3-4CB4-AF6B-FB6DBD88A5E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
6365
{11787BD7-05F3-4CB4-AF6B-FB6DBD88A5E7}.Release|Any CPU.Build.0 = Release|Any CPU
66+
{CFA655F6-F116-4D83-B424-EB3FD1975787}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67+
{CFA655F6-F116-4D83-B424-EB3FD1975787}.Debug|Any CPU.Build.0 = Debug|Any CPU
68+
{CFA655F6-F116-4D83-B424-EB3FD1975787}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{CFA655F6-F116-4D83-B424-EB3FD1975787}.Release|Any CPU.Build.0 = Release|Any CPU
6470
EndGlobalSection
6571
GlobalSection(SolutionProperties) = preSolution
6672
HideSolutionNode = FALSE
6773
EndGlobalSection
6874
GlobalSection(NestedProjects) = preSolution
6975
{8B074077-4862-41FD-8A4D-BF20FD9D91BC} = {A190D5B6-C2BF-4EAF-8ACC-FC8CAF7710CA}
7076
{B20988FD-2873-49E5-8BFD-096E0345216C} = {A190D5B6-C2BF-4EAF-8ACC-FC8CAF7710CA}
77+
{CFA655F6-F116-4D83-B424-EB3FD1975787} = {A190D5B6-C2BF-4EAF-8ACC-FC8CAF7710CA}
7178
EndGlobalSection
7279
GlobalSection(ExtensibilityGlobals) = postSolution
7380
SolutionGuid = {3055D8D1-F3ED-4E38-83D9-6AB821AAE1FD}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
using NetCore2BlocklyNew;
2+
var builder = WebApplication.CreateBuilder(args);
3+
4+
// Add services to the container.
5+
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
6+
builder.Services.AddOpenApi();
7+
8+
var app = builder.Build();
9+
10+
// Configure the HTTP request pipeline.
11+
//if (app.Environment.IsDevelopment())
12+
{
13+
app.MapOpenApi();
14+
}
15+
app.UseBlocklyUI(app.Environment);
16+
17+
app.UseBlocklyAutomation();
18+
19+
//app.UseHttpsRedirection();
20+
21+
var summaries = new[]
22+
{
23+
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
24+
};
25+
26+
app.MapGet("/weatherforecast", () =>
27+
{
28+
var forecast = Enumerable.Range(1, 5).Select(index =>
29+
new WeatherForecast
30+
(
31+
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
32+
Random.Shared.Next(-20, 55),
33+
summaries[Random.Shared.Next(summaries.Length)]
34+
))
35+
.ToArray();
36+
return forecast;
37+
})
38+
.WithName("GetWeatherForecast");
39+
40+
app.Run();
41+
42+
internal record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
43+
{
44+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
45+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
3+
"": {
4+
"http": {
5+
"commandName": "Project",
6+
"dotnetRunMessages": true,
7+
"launchBrowser": true,
8+
"launchUrl": "/",
9+
"applicationUrl": "http://localhost:5135",
10+
"environmentVariables": {
11+
"ASPNETCORE_ENVIRONMENT": "Development"
12+
}
13+
},
14+
"https": {
15+
"commandName": "Project",
16+
"dotnetRunMessages": true,
17+
"launchBrowser": true,
18+
"launchUrl": "/",
19+
"applicationUrl": "https://localhost:7090;http://localhost:5135",
20+
"environmentVariables": {
21+
"ASPNETCORE_ENVIRONMENT": "Development"
22+
}
23+
}
24+
}
25+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
11+
</ItemGroup>
12+
<ItemGroup>
13+
<ProjectReference Include="..\NetCore2BlocklyNew\NetCore2BlocklyNew.csproj" />
14+
</ItemGroup>
15+
<ItemGroup>
16+
<None Include="wwwroot\index.html" />
17+
</ItemGroup>
18+
<ItemGroup>
19+
<Folder Include="wwwroot\BlocklyAutomation\" />
20+
</ItemGroup>
21+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@TestIntegration9_HostAddress = http://localhost:5135
2+
3+
GET {{TestIntegration9_HostAddress}}/weatherforecast/
4+
Accept: application/json
5+
6+
###
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
7+
},
8+
"AllowedHosts": "*"
9+
}

0 commit comments

Comments
 (0)