Skip to content

Commit

Permalink
Make it just like a library instead of a plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFFoZ committed Apr 10, 2021
1 parent 2c901c9 commit 995d27a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
18 changes: 0 additions & 18 deletions EvolutionPlugins.Economy.Stub/EconomyStub.cs

This file was deleted.

10 changes: 4 additions & 6 deletions EvolutionPlugins.Economy.Stub/ServiceConfigurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenMod.API.Ioc;
using OpenMod.API.Prioritization;
using OpenMod.Extensions.Economy.Abstractions;

namespace EvolutionPlugins.Economy.Stub
{
[Priority(Priority = Priority.Lowest)]
[UsedImplicitly]
public class ServiceConfigurator : IServiceConfigurator
public static class ServiceCollectionExtension
{
public void ConfigureServices(IOpenModServiceConfigurationContext openModStartupContext,
IServiceCollection serviceCollection)
[UsedImplicitly]
public static IServiceCollection AddEconomyStub(this IServiceCollection serviceCollection)
{
serviceCollection.TryAddSingleton<IEconomyProvider, EconomyProviderStub>();
return serviceCollection;
}
}
}

0 comments on commit 995d27a

Please sign in to comment.