public static async Task <ResourceReaper> GetAndStartDefaultAsync(IDockerEndpointAuthenticationConfiguration dockerEndpointAuthConfig = null, CancellationToken ct = default) { if (defaultInstance != null && !defaultInstance.disposed) { return(defaultInstance); } await DefaultLock.WaitAsync(ct) .ConfigureAwait(false); if (defaultInstance != null && !defaultInstance.disposed) { DefaultLock.Release(); return(defaultInstance); } try { defaultInstance = await GetAndStartNewAsync(DefaultSessionId, dockerEndpointAuthConfig, RyukImage, default, ct)
/// <summary> /// Initializes a new instance of the <see cref="ResourceReaperStateEventArgs" /> class. /// </summary> /// <param name="resourceReaper">The Resource Reaper instance.</param> /// <param name="resourceReaperState">The Resource Reaper state.</param> public ResourceReaperStateEventArgs(ResourceReaper resourceReaper, ResourceReaperState resourceReaperState) { this.Instance = resourceReaper; this.State = resourceReaperState; }