private async Task <ImmutableDictionary <string, object> > SerializeInputArgsAsync(string ctx, InputArgs args, bool keepResources) { if (_excessiveDebugOutput) { Log.Debug($"Serialize property[{ctx}]: Recursing into ResourceArgs"); } var dictionary = await args.ToDictionaryAsync().ConfigureAwait(false); return(await SerializeDictionaryAsync(ctx, dictionary, keepResources).ConfigureAwait(false)); }