コード例 #1
0
 public static void UseSqlServerInLeaseMode(this StandardConfigurer <ITransport> configurer, Func <Task <IDbConnection> > connectionFactory, string inputQueueName, TimeSpan?leaseInterval = null, TimeSpan?leaseTolerance = null, bool automaticallyRenewLeases = false, TimeSpan?leaseAutoRenewInterval = null, Func <string> leasedByFactory = null, bool ensureTablesAreCreated = true)
 {
     configurer.UseSqlServerInLeaseMode(new SqlServerLeaseTransportOptions(connectionFactory), inputQueueName)
     .SetEnsureTablesAreCreated(ensureTablesAreCreated)
     .SetLeaseInterval(leaseInterval)
     .SetLeaseTolerance(leaseTolerance)
     .SetAutomaticLeaseRenewal(automaticallyRenewLeases, leaseAutoRenewInterval)
     .SetLeasedByFactory(leasedByFactory);
 }