mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
639 B
22 lines
639 B
using System.Threading.Tasks; |
|
|
|
public interface IDapperAsyncImplementor |
|
{ |
|
Task<T> GetAsync<T>(IDbConnection connection, object id, IDbTransaction transaction, int? commandTimeout) where T : class; |
|
} |
|
public interface IDbConnection |
|
{ |
|
} |
|
public interface IDbTransaction |
|
{ |
|
} |
|
public static class Issue3320 |
|
{ |
|
public static IDapperAsyncImplementor Instance => null; |
|
|
|
public static async Task<T> GetAsync<T>(this IDbConnection connection, dynamic id, IDbTransaction transaction = null, int? commandTimeout = null) where T : class |
|
{ |
|
dynamic async = Instance.GetAsync<T>(connection, id, transaction, commandTimeout); |
|
return await async; |
|
} |
|
}
|
|
|