Exemple #1
0
 protected virtual async Task WriteElseAsync(TemplateScopeContext scope, PageElseBlock fragment, CancellationToken token)
 {
     await WriteAsync(scope, fragment.Body, GetElseCallTrace(fragment), token);
 }
Exemple #2
0
 protected virtual string GetElseCallTrace(PageElseBlock fragment) => "Block: " + Name + " > Else" +
 (fragment.Argument.IsNullOrEmpty() ? "" : " (" + fragment.Argument + ")");