Skip to content

Commit

Permalink
added IcancellableInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
joshika39 committed Nov 6, 2023
1 parent acd6393 commit ec079a6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _src/Implementation/Module/CoreModule.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();
Expand Down
9 changes: 9 additions & 0 deletions _src/Infrastructure/Module/ICancellableModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Threading;

namespace Infrastructure.Module
{
public interface ICancellableModule
{
CancellationTokenSource Source { get; }
}
}

0 comments on commit ec079a6

Please sign in to comment.