コード例 #1
0
        public SubscriptionEndpoint GetSubscription(Guid subscriptionEndpointId)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException("ServiceBusRuntime");
            }

            SubscriptionEndpoint endpoint = null;

            _subscriptions.Read(subscriptions =>
            {
                endpoint = subscriptions.FirstOrDefault(s => s.Id == subscriptionEndpointId);
            });
            return(endpoint);
        }