예제 #1
0
 public async ValueTask Write <T>(CompatibilityTests test, T entity)
 {
     await(Task) typeof(TableClient)
     .GetMethod("AddEntityAsync", BindingFlags.Public | BindingFlags.Instance)
     .MakeGenericMethod(typeof(T))
     .Invoke(test.TableClient, new object[] { entity, default(CancellationToken) });
 }
예제 #2
0
 public async ValueTask <T> Read <T>(CompatibilityTests test)
 {
     return(await(Task <Response <T> >) typeof(TableClient)
            .GetMethod("GetEntityAsync", BindingFlags.Public | BindingFlags.Instance)
            .MakeGenericMethod(typeof(T))
            .Invoke(test.TableClient, new object[] { PartitionKey, RowKey, null, default(CancellationToken) }));
 }