public (TimeModel, long) GetTimeModel(string accessToken = null) { var response = _configManagementClient.WithAccess(accessToken).Dispatch(new GetTimeModelRequest(), (c, r, co) => c.GetTimeModel(r, co)); return(response.TimeModel, response.ConfigurationGeneration); }
public IEnumerable <PackageDetails> ListKnownPackages(string accessToken = null) { var response = _packageManagementClient.WithAccess(accessToken).Dispatch(new ListKnownPackagesRequest(), (c, r, co) => c.ListKnownPackages(r, co)); return(response.PackageDetails); }
public void Reset(string accessToken = null) { _resetClient.WithAccess(accessToken).Dispatch(new ResetRequest { LedgerId = _ledgerId }, (c, r, co) => c.Reset(r, co)); }
public void Submit(Commands commands, string accessToken = null) { _commandSubmissionClient.WithAccess(accessToken).Dispatch(new SubmitRequest { Commands = commands }, (c, r, co) => c.Submit(r, co)); }
public GetFlatTransactionResponse GetFlatTransactionByEventId(string eventId, IEnumerable <string> requestingParties, string accessToken = null, TraceContext traceContext = null) { var request = new GetTransactionByEventIdRequest { LedgerId = LedgerId, EventId = eventId, TraceContext = traceContext }; request.RequestingParties.AddRange(requestingParties); return(_transactionsClient.WithAccess(accessToken).Dispatch(request, (c, r, co) => c.GetFlatTransactionByEventId(r, co))); }