2 writes to UniqueName
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
580
lm.
UniqueName
= $"{lm.Name}{currentCount}";
585
lm.
UniqueName
= lm.Name;
7 references to UniqueName
Microsoft.Extensions.Logging.Generators (7)
LoggerMessageGenerator.Emitter.cs (7)
143
{nestedIndentation}private readonly struct __{lm.
UniqueName
}Struct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
150
{nestedIndentation}public __{lm.
UniqueName
}Struct(");
171
{nestedIndentation}public static readonly global::System.Func<__{lm.
UniqueName
}Struct, global::System.Exception?, string> Format = (state, ex) => state.ToString();
355
string typeName = $"__{lm.
UniqueName
}Struct";
387
_builder.Append($@"global::System.Exception?> __{lm.
UniqueName
}Callback =
416
{nestedIndentation}{enabledCheckIndentation}__{lm.
UniqueName
}Callback({logger}, ");
432
{nestedIndentation}{enabledCheckIndentation}__{lm.
UniqueName
}Struct.Format);");