示例#1
0
            public PutClientConfigurationCommand(DocumentConventions conventions, JsonOperationContext context, ClientConfiguration configuration)
            {
                if (conventions == null)
                {
                    throw new ArgumentNullException(nameof(conventions));
                }
                if (configuration == null)
                {
                    throw new ArgumentNullException(nameof(configuration));
                }
                if (context == null)
                {
                    throw new ArgumentNullException(nameof(context));
                }

                _configuration = EntityToBlittable.ConvertEntityToBlittable(configuration, conventions, context);
            }
示例#2
0
 public PutClientConfigurationOperation(ClientConfiguration configuration)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }