public ExportTicketCommand(ZammadAccount account, IFileService fileService, ISerializerResolver serializerResolver, ILogger <ExportTicketCommand> logger) { _account = account; _fileService = fileService; _serializerResolver = serializerResolver; _logger = logger; }
public GetHeroResultBuilder( IEntityStore entityStore, Func <JsonElement, EntityId> extractId, IOperationResultDataFactory <GetHeroResult> resultDataFactory, ISerializerResolver stringParser) { _entityStore = entityStore; _extractId = extractId; _resultDataFactory = resultDataFactory; _stringParser = stringParser.GetLeafValueParser <string, string>("String"); }
public static ISmppSerializer <T> ResolveFor <T>(this ISerializerResolver resolver) { return(resolver.ResolveForType(typeof(T)) as ISmppSerializer <T>); }
public static object?GetValue(this MemberInfo memberInfo, object?instance, ISerializerResolver serializerResolver) => serializerResolver.GetMemberValue(memberInfo, instance);
internal static MemberInfo?FindMatch(this MemberInfo[] memberInfos, string name, ISerializerResolver serializerResolver) { for (int i = 0; i < memberInfos.Length; i++) { if (memberInfos[i].GetName(serializerResolver) == name || memberInfos[i].Name == name) { return(memberInfos[i]); } } return(null); }