/// <inheritdoc /> public async Task <ITrustedOrigin> CreateOriginAsync(ITrustedOrigin trustedOrigin, CancellationToken cancellationToken = default(CancellationToken)) => await PostAsync <TrustedOrigin>(new HttpRequest { Uri = "/api/v1/trustedOrigins", Verb = HttpVerb.Post, Payload = trustedOrigin, }, cancellationToken).ConfigureAwait(false);
/// <inheritdoc /> public async Task <ITrustedOrigin> UpdateOriginAsync(ITrustedOrigin trustedOrigin, string trustedOriginId, CancellationToken cancellationToken = default(CancellationToken)) => await PutAsync <TrustedOrigin>(new HttpRequest { Uri = "/api/v1/trustedOrigins/{trustedOriginId}", Verb = HttpVerb.Put, Payload = trustedOrigin, PathParameters = new Dictionary <string, object>() { ["trustedOriginId"] = trustedOriginId, }, }, cancellationToken).ConfigureAwait(false);