public RegisterReplicationHubAccessOperation(string hubName, ReplicationHubAccess access) { if (string.IsNullOrWhiteSpace(hubName)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(hubName)); } _hubName = hubName; _access = access ?? throw new ArgumentNullException(nameof(access)); }
public RegisterReplicationHubAccessCommand(string hubName, ReplicationHubAccess access) { if (string.IsNullOrWhiteSpace(hubName)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(hubName)); } _hubName = hubName; _access = access ?? throw new ArgumentNullException(nameof(access)); ResponseType = RavenCommandResponseType.Raw; }