Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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;
 }