// This call is executed over AMQP.
        public override async Task OpenAsync()
        {
            Logging.Enter(this, $"Opening AmqpServiceClient", nameof(OpenAsync));

            await _faultTolerantSendingLink.OpenAsync(OpenTimeout).ConfigureAwait(false);

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

            Logging.Exit(this, $"Opening AmqpServiceClient", nameof(OpenAsync));
        }
示例#2
0
        /// <summary>
        /// Open the ServiceClient instance. This call is made over AMQP.
        /// </summary>
        public virtual async Task OpenAsync()
        {
            Logging.Enter(this, $"Opening AmqpServiceClient", nameof(OpenAsync));

            using var ctx = new CancellationTokenSource(_openTimeout);

            await _faultTolerantSendingLink.OpenAsync(ctx.Token).ConfigureAwait(false);

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

            Logging.Exit(this, $"Opening AmqpServiceClient", nameof(OpenAsync));
        }
示例#3
0
        public override async Task OpenAsync()
        {
            await GetSendingLinkAsync().ConfigureAwait(false);

            await feedbackReceiver.OpenAsync().ConfigureAwait(false);
        }
        public override async Task OpenAsync()
        {
            await _faultTolerantSendingLink.OpenAsync(OpenTimeout).ConfigureAwait(false);

            await _feedbackReceiver.OpenAsync().ConfigureAwait(false);
        }