using System.Threading.Tasks; namespace Unity.Services.Core.Configuration { class MemoryConfigurationLoader : IConfigurationLoader { public SerializableProjectConfiguration Config { get; set; } Task IConfigurationLoader.GetConfigAsync() { var completionSource = new TaskCompletionSource(); completionSource.SetResult(Config); return completionSource.Task; } } }