/// <inheritdoc /> public override void When() { Soap.Dispose(); Rest.Dispose(); GC.Collect(); }
public async ValueTask DisposeAsync() { try { await Client.StopAsync(); } catch (Exception ex) { Client.Logger.LogWarning(ex, "Failed to stop client."); } try { Rest.Dispose(); } catch (Exception ex) { Client.Logger.LogWarning(ex, "Failed to displse the rest client."); } }
public void Dispose() { Rest.Dispose(); }