/// <summary> /// Initializes a new instance of the <see cref="IgniteClient"/> class. /// </summary> /// <param name="clientConfiguration">The client configuration.</param> public IgniteClient(IgniteClientConfiguration clientConfiguration) { Debug.Assert(clientConfiguration != null); _configuration = new IgniteClientConfiguration(clientConfiguration); _marsh = new Marshaller(_configuration.BinaryConfiguration) { Ignite = this }; _transactions = new TransactionsClient(this, clientConfiguration.TransactionConfiguration); _socket = new ClientFailoverSocket(_configuration, _marsh, _transactions); _binProc = _configuration.BinaryProcessor ?? new BinaryProcessorClient(_socket); _binary = new Impl.Binary.Binary(_marsh); _cluster = new ClientCluster(this); _compute = new ComputeClient(this, ComputeClientFlags.None, TimeSpan.Zero, null); _services = new ServicesClient(this); }
/// <summary> /// Initializes a new instance of the <see cref="IgniteClient"/> class. /// </summary> /// <param name="clientConfiguration">The client configuration.</param> public IgniteClient(IgniteClientConfiguration clientConfiguration) { Debug.Assert(clientConfiguration != null); _configuration = new IgniteClientConfiguration(clientConfiguration); _marsh = new Marshaller(_configuration.BinaryConfiguration) { Ignite = this }; _socket = new ClientFailoverSocket(_configuration, _marsh); _binProc = _configuration.BinaryProcessor ?? new BinaryProcessorClient(_socket); _binary = new Binary(_marsh); _cluster = new ClientCluster(this, _marsh); }