internal T ExecuteWithReplication <T>(HttpMethod method, Func <OperationMetadata, IRequestTimeMetric, T> operation) { return (AsyncHelpers.RunSync(() => asyncServerClient.ExecuteWithReplication(method, (operationMetadata, requestTimeMetric) => Task.FromResult(operation(operationMetadata, requestTimeMetric))))); }