protected void SetMessageSource(Microsoft.ServiceBus.Channels.IMessageSource messageSource) { this.messageSource = new Microsoft.ServiceBus.Channels.SynchronizedMessageSource(messageSource); }
public SynchronizedMessageSource(Microsoft.ServiceBus.Channels.IMessageSource source) { this.source = source; this.sourceLock = new ThreadNeutralSemaphore(1); }