-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
20 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...r.Impostor.Http/ReactorHandshakeFilter.cs → ...r.Impostor/Http/ReactorHandshakeFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
using Impostor.Api.Events; | ||
using Impostor.Api.Http; | ||
using Impostor.Api.Plugins; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
using Reactor.Impostor.Http; | ||
using Reactor.Impostor.Rpcs; | ||
|
||
namespace Reactor.Impostor; | ||
|
||
public class ReactorPluginStartup : IPluginStartup | ||
public class ReactorPluginStartup : IPluginHttpStartup | ||
{ | ||
public void ConfigureServices(IServiceCollection services) | ||
{ | ||
services.AddSingleton<IEventListener, HandshakeEventListener>(); | ||
services.AddSingleton<IReactorCustomRpcManager, ReactorCustomRpcManager>(); | ||
|
||
services.AddSingleton<IListingFilter, ReactorHandshakeFilter>(); | ||
services.AddSingleton<ClientModsHeader>(); | ||
} | ||
|
||
public void ConfigureWebApplication(IApplicationBuilder builder) | ||
{ | ||
builder.UseMiddleware<ClientModsHeader>(); | ||
} | ||
|
||
public void ConfigureHost(IHostBuilder host) | ||
{ | ||
} | ||
} | ||
} |