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); }