diff --git a/_src/Implementation/Module/CoreModule.cs b/_src/Implementation/Module/CoreModule.cs index b145d90..08c11ae 100644 --- a/_src/Implementation/Module/CoreModule.cs +++ b/_src/Implementation/Module/CoreModule.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Threading; -using GameFramework.Impl.Time; using Implementation.Application; using Implementation.Configuration.Factories; using Implementation.IO; @@ -21,8 +20,15 @@ namespace Implementation.Module { - public class CoreModule : IGeneralModule + public class CoreModule : IGeneralModule, ICancellableModule { + public CancellationTokenSource Source { get; } + + public CoreModule() + { + + } + public void RegisterServices(IServiceCollection collection, string projectNamespace) { var tokenSource = new CancellationTokenSource(); diff --git a/_src/Infrastructure/Module/ICancellableModule.cs b/_src/Infrastructure/Module/ICancellableModule.cs new file mode 100644 index 0000000..1f2074a --- /dev/null +++ b/_src/Infrastructure/Module/ICancellableModule.cs @@ -0,0 +1,9 @@ +using System.Threading; + +namespace Infrastructure.Module +{ + public interface ICancellableModule + { + CancellationTokenSource Source { get; } + } +}