コード例 #1
0
            public PutServerWideExternalReplicationCommand(JsonOperationContext context, ServerWideExternalReplication configuration)
            {
                if (configuration == null)
                {
                    throw new ArgumentNullException(nameof(configuration));
                }
                if (context == null)
                {
                    throw new ArgumentNullException(nameof(context));
                }

                _configuration = DocumentConventions.Default.Serialization.DefaultConverter.ToBlittable(configuration, context);
            }
コード例 #2
0
 public PutServerWideExternalReplicationOperation(ServerWideExternalReplication configuration)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }