I'm attempting to create a messaging layer on top of the Service Bus .NET client library, giving me the ability to switch Service Bus out for something else if needed.
In my "receiver" class I can use the MessagingFactory's CreateMessageReceiver method to get a generic MessageReceiver that will work for both queues and subscriptions. My class can just be given the entity path and the MessagingFactory figures it out. However, from what I can tell, this generic receiver cannot deal with session-enabled queues and subscriptions - I must use a QueueClient or SubscriptionClient object to accept sessions.
Is there a way to receive from sessions without using a QueueClient or SubscriptionClient object?