Input:
await SessionManager.Session(cancellationToken, async context =>
{
var records = await context
.DbContext.Entity.AsNoTracking()
.Where(
context.DbContext.PredicateFor(criteria).TranslatedBy(MkEntityPredicates)
)
.ToListAsync(context.CancellationToken);
var entities = await MarshalEntities(records);
return entities.ToImmutableDictionary(e => e.Id.Value);
});
Output:
await SessionManager.Session(
cancellationToken,
async context =>
{
var records = await context
.DbContext.Entity.AsNoTracking()
.Where(
context.DbContext.PredicateFor(criteria).TranslatedBy(MkEntityPredicates)
)
.ToListAsync(context.CancellationToken);
var entities = await MarshalEntities(records);
return entities.ToImmutableDictionary(e => e.Id.Value);
}
);
Expected behavior:
It would be nice if the formatter could avoid wrapping arguments to method calls where the call includes a block-bodied lambda on the assumption that the method call represents some form of flow control.
Input:
Output:
Expected behavior:
It would be nice if the formatter could avoid wrapping arguments to method calls where the call includes a block-bodied lambda on the assumption that the method call represents some form of flow control.