public static void UseMySqlInLeaseMode(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.UseMySqlInLeaseMode(new MySqlLeaseTransportOptions(connectionFactory), inputQueueName) .SetEnsureTablesAreCreated(ensureTablesAreCreated) .SetLeaseInterval(leaseInterval) .SetLeaseTolerance(leaseTolerance) .SetAutomaticLeaseRenewal(automaticallyRenewLeases, leaseAutoRenewInterval) .SetLeasedByFactory(leasedByFactory); }