protected override void PopulateData(Domain domain) { var nodes = new[] { WellKnown.DefaultNodeId, "Node1", "Node2", "Node3", "Node4", "Node5", }; foreach (var node in nodes) { var selectedNode = domain.StorageNodeManager.GetNode(node); using (var session = selectedNode.OpenSession()) using (var transaction = session.OpenTransaction()) { var populator = new ModelPopulator(); populator.Run(); transaction.Complete(); } } }
private void PopulateData(Domain domain) { var nodes = new[] { WellKnown.DefaultNodeId, "Node1", "Node2", "Node3", "Node4", "Node5", }; foreach (var node in nodes) { using (var session = domain.OpenSession()) { session.SelectStorageNode(node); using (var transaction = session.OpenTransaction()) { var populator = new ModelPopulator(); populator.Run(); transaction.Complete(); } } } }