Exemplo n.º 1
0
 /// <inheritdoc />
 public Task <User> Create(UserUpdate user, CancellationToken cancellationToken) => ApiClient.Create <UserUpdate, User>(Routes.User, user ?? throw new ArgumentNullException(nameof(user)), cancellationToken);
Exemplo n.º 2
0
 /// <inheritdoc />
 public Task <UserResponse> Create(UserCreateRequest user, CancellationToken cancellationToken) => ApiClient.Create <UserCreateRequest, UserResponse>(Routes.User, user ?? throw new ArgumentNullException(nameof(user)), cancellationToken);
 /// <inheritdoc />
 public Task <Instance> CreateOrAttach(Instance instance, CancellationToken cancellationToken) => ApiClient.Create <Instance, Instance>(Routes.InstanceManager, instance ?? throw new ArgumentNullException(nameof(instance)), cancellationToken);
Exemplo n.º 4
0
 /// <inheritdoc />
 public Task <UserGroup> Create(UserGroup group, CancellationToken cancellationToken) => ApiClient.Create <UserGroup, UserGroup>(Routes.UserGroup, group ?? throw new ArgumentNullException(nameof(group)), cancellationToken);