Skip to content

Commit de8276a

Browse files
authored
Merge pull request #59 from Mythetech/feat/use-framework-infrastructure
feat: use framework infrastructure
2 parents 4955119 + 356edb4 commit de8276a

File tree

112 files changed

+329
-413
lines changed

Some content is hidden

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

112 files changed

+329
-413
lines changed

Apollo.Client/Apollo.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
1717
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" />
1818
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" />
19-
<PackageReference Include="Mythetech.Components.WebAssembly" />
19+
<PackageReference Include="Mythetech.Framework.WebAssembly" />
2020
<PackageReference Include="System.Reflection.MetadataLoadContext" />
2121
<PackageReference Include="System.Security.Permissions" />
2222
<PackageReference Include="xunit" />

Apollo.Client/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
using Apollo.Client.Code;
66
using Apollo.Client.Hosting;
77
using Apollo.Client.Infrastructure;
8+
using Apollo.Components;
89
using Apollo.Components.Analysis;
910
using Apollo.Components.Code;
1011
using Apollo.Components.Hosting;
1112
using Apollo.Components.Infrastructure;
1213
using Apollo.Components.Infrastructure.Environment;
13-
using Apollo.Components.Infrastructure.MessageBus;
14+
using Mythetech.Framework.Infrastructure.MessageBus;
1415
using Apollo.Infrastructure.Resources;
1516

1617
var builder = WebAssemblyHostBuilder.CreateDefault(args);
@@ -19,7 +20,7 @@
1920

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

22-
builder.Services.AddMessageBus(typeof(Program).Assembly, typeof(IConsumer<>).Assembly);
23+
builder.Services.AddMessageBus(typeof(Program).Assembly, typeof(AppState).Assembly, typeof(IConsumer<>).Assembly);
2324

2425
builder.Services.AddSingleton<IRuntimeEnvironment, WebAssemblyRuntimeEnvironment>();
2526

@@ -33,6 +34,6 @@
3334

3435
var app = builder.Build();
3536

36-
app.Services.UseMessageBus(typeof(Program).Assembly, typeof(IConsumer<>).Assembly);
37+
app.Services.UseMessageBus(typeof(Program).Assembly, typeof(AppState).Assembly, typeof(IConsumer<>).Assembly);
3738

3839
await app.RunAsync();

Apollo.Client/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<base href="/" />
99
<link rel="stylesheet" href="css/app.css" />
1010
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
11-
<link href="_content/Mythetech.Components/mythetech.css" rel="stylesheet" />
11+
<link href="_content/Mythetech.Framework/mythetech.css" rel="stylesheet" />
1212
<link rel="stylesheet" href="_content/Apollo.Components/app.css" />
1313
<link href="https://fonts.googleapis.com/css2?family=Gotu&display=swap" rel="stylesheet">
1414

Apollo.Components/Analysis/CodeAnalysisState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Text.Json;
22
using Apollo.Components.Console;
3-
using Apollo.Components.Infrastructure.MessageBus;
3+
using Mythetech.Framework.Infrastructure.MessageBus;
44
using Apollo.Components.NuGet;
55
using Apollo.Components.Solutions;
66
using Apollo.Contracts.Analysis;

Apollo.Components/Apollo.Components.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<PackageReference Include="KristofferStrube.Blazor.FileSystemAccess" />
2323
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" />
2424
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" />
25-
<PackageReference Include="Mythetech.Components" />
25+
<PackageReference Include="Mythetech.Framework" />
2626
<PackageReference Include="NUnit" />
2727
<PackageReference Include="OmniSharp.Abstractions" />
2828
<PackageReference Include="xunit.extensibility.execution" />

Apollo.Components/Code/ActiveTypeState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System.Reflection;
2-
using Apollo.Components.Infrastructure.MessageBus;
2+
using Mythetech.Framework.Infrastructure.MessageBus;
33
using Apollo.Components.Solutions.Events;
44

55
namespace Apollo.Components.Code;

Apollo.Components/Code/CompilerState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Apollo.Components.Analysis;
44
using Apollo.Components.Console;
55
using Apollo.Components.DynamicTabs.Commands;
6-
using Apollo.Components.Infrastructure.MessageBus;
6+
using Mythetech.Framework.Infrastructure.MessageBus;
77
using Apollo.Components.NuGet;
88
using Apollo.Components.Solutions;
99
using Apollo.Components.Solutions.Events;

Apollo.Components/Code/Consumers/ConsoleProjectBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Apollo.Components.DynamicTabs.Commands;
2-
using Apollo.Components.Infrastructure.MessageBus;
2+
using Mythetech.Framework.Infrastructure.MessageBus;
33
using Apollo.Components.Solutions;
44
using Apollo.Components.Solutions.Commands;
55
using Apollo.Contracts.Solutions;

Apollo.Components/Code/Consumers/ConsoleRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Apollo.Components.DynamicTabs.Commands;
2-
using Apollo.Components.Infrastructure.MessageBus;
2+
using Mythetech.Framework.Infrastructure.MessageBus;
33
using Apollo.Components.Solutions;
44
using Apollo.Components.Solutions.Commands;
55
using Apollo.Contracts.Solutions;

Apollo.Components/Code/Consumers/LibraryProjectBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Apollo.Components.DynamicTabs.Commands;
2-
using Apollo.Components.Infrastructure.MessageBus;
2+
using Mythetech.Framework.Infrastructure.MessageBus;
33
using Apollo.Components.Solutions;
44
using Apollo.Components.Solutions.Commands;
55
using Apollo.Contracts.Solutions;

0 commit comments

Comments
 (0)