Example #1
0
        public async override Task CloseAsync()
        {
            await faultTolerantSendingLink.CloseAsync().ConfigureAwait(false);

            await feedbackReceiver.CloseAsync().ConfigureAwait(false);

            await fileNotificationReceiver.CloseAsync().ConfigureAwait(false);

            await iotHubConnection.CloseAsync().ConfigureAwait(false);
        }
        // This call is executed over AMQP.
        public async override Task CloseAsync()
        {
            Logging.Enter(this, $"Closing AmqpServiceClient", nameof(CloseAsync));

            await _faultTolerantSendingLink.CloseAsync().ConfigureAwait(false);

            await _feedbackReceiver.CloseAsync().ConfigureAwait(false);

            await _fileNotificationReceiver.CloseAsync().ConfigureAwait(false);

            await Connection.CloseAsync().ConfigureAwait(false);

            Logging.Exit(this, $"Closing AmqpServiceClient", nameof(CloseAsync));
        }