public TransactionContextProxy(HazelcastClient client, TransactionOptions options) { Client = client; var clusterService = (ClientClusterService)client.GetClientClusterService(); TxnOwnerNode = clusterService.GetRandomMember(); if (TxnOwnerNode == null) { throw new HazelcastException("Could not find matching member"); } Transaction = new TransactionProxy(client, options, TxnOwnerNode); }
public TransactionContextProxy(HazelcastClient client, TransactionOptions options) { _client = client; var clusterService = (ClientClusterService)client.GetClientClusterService(); TxnOwnerNode = client.GetClientConfig().GetNetworkConfig().IsSmartRouting() ? client.GetLoadBalancer().Next(): clusterService.GetMember(clusterService.GetOwnerConnectionAddress()); if (TxnOwnerNode == null) { throw new HazelcastException("Could not find matching member"); } _transaction = new TransactionProxy(client, options, TxnOwnerNode); }
public TransactionContextProxy(HazelcastClient client, TransactionOptions options) { _client = client; TxnConnection = Connect(); _transaction = new TransactionProxy(client, options, TxnConnection); }