Exemplo n.º 1
0
        public async Task Close()
        {
            var siloRuntime = providerRuntime as ISiloSideStreamProviderRuntime;

            if (siloRuntime != null)
            {
                await pullingAgentManager.Stop();
            }
        }
Exemplo n.º 2
0
        public async Task Close()
        {
            if (!stateManager.PresetState(ProviderState.Closed))
            {
                return;
            }
            var siloRuntime = providerRuntime as ISiloSideStreamProviderRuntime;

            if (siloRuntime != null)
            {
                await pullingAgentManager.Stop();
            }
            stateManager.CommitState();
        }
Exemplo n.º 3
0
        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();
        }