Ejemplo n.º 1
0
 public override async Task <object> DeserializeResponseAsync(
     ITransportSerializer builtInSerializer,
     IApiCallDetails response,
     Stream stream,
     CancellationToken ctx = default
     ) =>
 response.Success
                         ? await builtInSerializer.CreateStateful(Formatter)
 .DeserializeAsync <MultiSearchResponse>(stream, ctx)
 .ConfigureAwait(false)
                         : new MultiSearchResponse();
Ejemplo n.º 2
0
 public override object DeserializeResponse(ITransportSerializer builtInSerializer, IApiCallDetails response, Stream stream) =>
 response.Success
                         ? builtInSerializer.CreateStateful(Formatter).Deserialize <MultiSearchResponse>(stream)
                         : new MultiSearchResponse();