コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the ConnectToMongoDbTaskProperties
 /// class.
 /// </summary>
 /// <param name="errors">Array of errors. This is ignored if
 /// submitted.</param>
 /// <param name="state">The state of the task. This is ignored if
 /// submitted. Possible values include: 'Unknown', 'Queued', 'Running',
 /// 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation',
 /// 'Faulted'</param>
 /// <param name="commands">Array of command properties.</param>
 /// <param name="clientData">Key value pairs of client data to attach
 /// meta data information to task</param>
 /// <param name="output">An array containing a single
 /// MongoDbClusterInfo object</param>
 public ConnectToMongoDbTaskProperties(IList <ODataError> errors = default(IList <ODataError>), string state = default(string), IList <CommandProperties> commands = default(IList <CommandProperties>), IDictionary <string, string> clientData = default(IDictionary <string, string>), MongoDbConnectionInfo input = default(MongoDbConnectionInfo), IList <MongoDbClusterInfo> output = default(IList <MongoDbClusterInfo>))
     : base(errors, state, commands, clientData)
 {
     Input  = input;
     Output = output;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the MongoDbMigrationSettings class.
 /// </summary>
 /// <param name="databases">The databases on the source cluster to
 /// migrate to the target. The keys are the names of the
 /// databases.</param>
 /// <param name="source">Settings used to connect to the source
 /// cluster</param>
 /// <param name="target">Settings used to connect to the target
 /// cluster</param>
 /// <param name="boostRUs">The RU limit on a CosmosDB target that
 /// collections will be temporarily increased to (if lower) during the
 /// initial copy of a migration, from 10,000 to 1,000,000, or 0 to use
 /// the default boost (which is generally the maximum), or null to not
 /// boost the RUs. This setting has no effect on non-CosmosDB
 /// targets.</param>
 /// <param name="replication">Describes how changes will be replicated
 /// from the source to the target. The default is OneTime. Possible
 /// values include: 'Disabled', 'OneTime', 'Continuous'</param>
 /// <param name="throttling">Settings used to limit the resource usage
 /// of the migration</param>
 public MongoDbMigrationSettings(IDictionary <string, MongoDbDatabaseSettings> databases, MongoDbConnectionInfo source, MongoDbConnectionInfo target, int?boostRUs = default(int?), string replication = default(string), MongoDbThrottlingSettings throttling = default(MongoDbThrottlingSettings))
 {
     BoostRUs    = boostRUs;
     Databases   = databases;
     Replication = replication;
     Source      = source;
     Target      = target;
     Throttling  = throttling;
     CustomInit();
 }