Esempio 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));
 }
Esempio 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;
 }