diff --git a/Elsa.sln b/Elsa.sln index 39c6c6996..3bca70ace 100644 --- a/Elsa.sln +++ b/Elsa.sln @@ -118,8 +118,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Samples.AspNet.EntityF EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Samples.AspNet.WorkflowServer", "samples\aspnet\Elsa.Samples.AspNet.WorkflowServer\Elsa.Samples.AspNet.WorkflowServer.csproj", "{89157FB8-A25B-42EC-A91F-37DFEE274C8C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Samples.AspNet.WorkflowServerAndDesigner", "samples\aspnet\Elsa.Samples.AspNet.WorkflowServerAndDesigner\Elsa.Samples.AspNet.WorkflowServerAndDesigner.csproj", "{34FBB2D3-4E2B-4411-95F2-C6B56899826A}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{986E5482-0482-448C-B9E4-EC67A9474B85}" ProjectSection(SolutionItems) = preProject docker\.dockerignore = docker\.dockerignore @@ -494,10 +492,6 @@ Global {89157FB8-A25B-42EC-A91F-37DFEE274C8C}.Debug|Any CPU.Build.0 = Debug|Any CPU {89157FB8-A25B-42EC-A91F-37DFEE274C8C}.Release|Any CPU.ActiveCfg = Release|Any CPU {89157FB8-A25B-42EC-A91F-37DFEE274C8C}.Release|Any CPU.Build.0 = Release|Any CPU - {34FBB2D3-4E2B-4411-95F2-C6B56899826A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {34FBB2D3-4E2B-4411-95F2-C6B56899826A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {34FBB2D3-4E2B-4411-95F2-C6B56899826A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {34FBB2D3-4E2B-4411-95F2-C6B56899826A}.Release|Any CPU.Build.0 = Release|Any CPU {51050209-EC2F-4DC7-8F46-07E22B7811CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {51050209-EC2F-4DC7-8F46-07E22B7811CD}.Debug|Any CPU.Build.0 = Debug|Any CPU {51050209-EC2F-4DC7-8F46-07E22B7811CD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -853,7 +847,6 @@ Global {1A37795B-EBAB-4A9F-8CF0-373DA3D4C64A} = {56C2FFB8-EA54-45B5-A095-4A78142EB4B5} {F363BE0D-7DD0-4613-BB90-3245E23F35F9} = {56C2FFB8-EA54-45B5-A095-4A78142EB4B5} {89157FB8-A25B-42EC-A91F-37DFEE274C8C} = {56C2FFB8-EA54-45B5-A095-4A78142EB4B5} - {34FBB2D3-4E2B-4411-95F2-C6B56899826A} = {56C2FFB8-EA54-45B5-A095-4A78142EB4B5} {51050209-EC2F-4DC7-8F46-07E22B7811CD} = {56C2FFB8-EA54-45B5-A095-4A78142EB4B5} {3246883E-2FA7-4B4A-BDC5-99039A2869BC} = {9B4F139F-7D26-435C-A561-89E65A67A8E5} {2BBFDE36-28A7-4875-8EBE-CC25C76B97FF} = {5BA4A8FA-F7F4-45B3-AEC8-8886D35AAC79} diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Elsa.Samples.AspNet.WorkflowServerAndDesigner.csproj b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Elsa.Samples.AspNet.WorkflowServerAndDesigner.csproj deleted file mode 100644 index 125d565fe..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Elsa.Samples.AspNet.WorkflowServerAndDesigner.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - net8.0 - - - - - - - - - - - - diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/Index.cshtml b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/Index.cshtml deleted file mode 100644 index 74d8ead04..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/Index.cshtml +++ /dev/null @@ -1,24 +0,0 @@ -@page "/" -@inject IConfiguration Configuration; -@{ - var serverUrl = Url.Content("~/elsa/api"); - var basePath = Configuration["Hosting:BasePath"]!; -} - - - - - - - Elsa Workflows 3.0 - - - - - - - - - - - \ No newline at end of file diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/_ViewImports.cshtml b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/_ViewImports.cshtml deleted file mode 100644 index 632fc9208..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Pages/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@namespace Elsa.Samples.AspNet.WorkflowServerAndDesigner.Pages -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Program.cs b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Program.cs deleted file mode 100644 index 596766a81..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Program.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Elsa.EntityFrameworkCore.Extensions; -using Elsa.EntityFrameworkCore.Modules.Management; -using Elsa.EntityFrameworkCore.Modules.Runtime; -using Elsa.Extensions; - -var builder = WebApplication.CreateBuilder(args); - -// Add services to the container. -builder.Services.AddElsa(elsa => -{ - // Configure management feature to use EF Core. - elsa.UseWorkflowManagement(management => - { - management.UseEntityFrameworkCore(ef => ef.UseSqlite()); - }); - - // Configure the default runtime feature to use EF Core. - elsa.UseWorkflowRuntime(runtime => - { - runtime.UseEntityFrameworkCore(); - }); - - // Expose API endpoints. - elsa.UseWorkflowsApi(); - - // Add services for HTTP activities and workflow middleware. - elsa.UseHttp(); - - // Configure identity so that we can create a default admin user. - elsa.UseIdentity(identity => - { - identity.UseAdminUserProvider(); - identity.TokenOptions = options => - { - options.SigningKey = "secret-token-signing-key"; - options.AccessTokenLifetime = TimeSpan.FromDays(1); - }; - }); - - // Use default authentication (JWT). - elsa.UseDefaultAuthentication(); -}); - -// Add Razor pages. -builder.Services.AddRazorPages(); - -var app = builder.Build(); - -// Configure the HTTP request pipeline. -app.UseHttpsRedirection(); -app.UseStaticFiles(); -app.UseAuthentication(); -app.UseAuthorization(); -app.UseWorkflowsApi(); -app.UseWorkflows(); -app.MapRazorPages(); -app.Run(); \ No newline at end of file diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Properties/launchSettings.json b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Properties/launchSettings.json deleted file mode 100644 index cf764e52d..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/Properties/launchSettings.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:44156", - "sslPort": 44325 - } - }, - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "http://localhost:5249", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "https://localhost:7256;http://localhost:5249", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/appsettings.json b/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/appsettings.json deleted file mode 100644 index fc2153c4b..000000000 --- a/samples/aspnet/Elsa.Samples.AspNet.WorkflowServerAndDesigner/appsettings.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*", - "Hosting": { - "BasePath": "" - } -}