コード例 #1
0
        public async Task Close()
        {
            var siloRuntime = providerRuntime as ISiloSideStreamProviderRuntime;

            if (siloRuntime != null)
            {
                await pullingAgentManager.Stop();
            }
        }
コード例 #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();
        }
コード例 #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();
        }