public BuildDequeueCommand(ISqlServerMessageQueueTransportOptionsFactory optionsFactory, CreateDequeueStatement createDequeueStatement) { Guard.NotNull(() => optionsFactory, optionsFactory); Guard.NotNull(() => createDequeueStatement, createDequeueStatement); _options = new Lazy <SqlServerMessageQueueTransportOptions>(optionsFactory.Create); _createDequeueStatement = createDequeueStatement; }
public BuildDequeueCommand(ISqlServerMessageQueueTransportOptionsFactory optionsFactory, CreateDequeueStatement createDequeueStatement) { Guard.NotNull(() => optionsFactory, optionsFactory); Guard.NotNull(() => createDequeueStatement, createDequeueStatement); _options = new Lazy<SqlServerMessageQueueTransportOptions>(optionsFactory.Create); _createDequeueStatement = createDequeueStatement; }