Redis.WebJobs.Extensions.Listeners.PubSubReceiver.CloseAsync C# (CSharp) Method

CloseAsync() public method

public CloseAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public Task CloseAsync()
        {
            return _subscriber.UnsubscribeAllAsync();
        }

Usage Example

        protected override async Task StopAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            await _receiver.CloseAsync();

            _receiver = null;
        }