Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ public interface ICustomDistributionSingletonService
// Instead you would want something like DistService.GetCurrentDistro()
// The rest of the application should not have to know what distribution is currently active.
RetroRewind RetroRewind { get; }
RetroRewindBeta RetroRewindBeta { get; }
}

public class CustomDistributionSingletonService : ICustomDistributionSingletonService
{
public RetroRewind RetroRewind { get; }
public RetroRewindBeta RetroRewindBeta { get; }

public CustomDistributionSingletonService(IFileSystem fileSystem, IApiCaller<IRetroRewindApi> api, ILogger<IDistribution> logger)
{
RetroRewind = new RetroRewind(fileSystem, api, logger);
RetroRewindBeta = new RetroRewindBeta(fileSystem, logger);
}

public List<IDistribution> GetAllDistributions()
{
return [RetroRewind];
return [RetroRewind, RetroRewindBeta];
}
}
Loading
Loading