public async Task Close() { var siloRuntime = providerRuntime as ISiloSideStreamProviderRuntime; if (siloRuntime != null) { await pullingAgentManager.Stop(); } }
public async Task Close() { if (!stateManager.PresetState(ProviderState.Closed)) { return; } var siloRuntime = providerRuntime as ISiloSideStreamProviderRuntime; if (siloRuntime != null) { await pullingAgentManager.Stop(); } stateManager.CommitState(); }
private async Task Close(CancellationToken token) { if (!stateManager.PresetState(ProviderState.Closed)) { return; } var siloRuntime = this.runtime as ISiloSideStreamProviderRuntime; if (siloRuntime != null) { await pullingAgentManager.Stop(); } stateManager.CommitState(); }