From 18ab8207bd14def950fd399c60d9ee54fab75d3b Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 6 Feb 2017 11:17:34 +0100 Subject: Fixed ICE-7169 and ICE-7375 - add option to specify if batch requests flushed with the communicator/connection should be compressed --- csharp/src/Ice/ObjectAdapterFactory.cs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'csharp/src/Ice/ObjectAdapterFactory.cs') diff --git a/csharp/src/Ice/ObjectAdapterFactory.cs b/csharp/src/Ice/ObjectAdapterFactory.cs index 17ccfa91b1c..0abdea67a62 100644 --- a/csharp/src/Ice/ObjectAdapterFactory.cs +++ b/csharp/src/Ice/ObjectAdapterFactory.cs @@ -28,10 +28,10 @@ namespace IceInternal } adapters = new List(_adapters); - + _instance = null; _communicator = null; - + System.Threading.Monitor.PulseAll(this); } @@ -44,7 +44,7 @@ namespace IceInternal adapter.deactivate(); } } - + public void waitForShutdown() { List adapters; @@ -57,7 +57,7 @@ namespace IceInternal { System.Threading.Monitor.Wait(this); } - + adapters = new List(_adapters); } @@ -110,13 +110,13 @@ namespace IceInternal { adapters = new List(_adapters); } - + foreach(Ice.ObjectAdapterI adapter in adapters) { adapter.updateConnectionObservers(); } } - + public void updateThreadObservers() { @@ -125,13 +125,13 @@ namespace IceInternal { adapters = new List(_adapters); } - + foreach(Ice.ObjectAdapterI adapter in adapters) { adapter.updateThreadObservers(); } } - + public Ice.ObjectAdapter createObjectAdapter(string name, Ice.RouterPrx router) { lock(this) @@ -140,7 +140,7 @@ namespace IceInternal { throw new Ice.CommunicatorDestroyedException(); } - + Ice.ObjectAdapterI adapter = null; if(name.Length == 0) { @@ -163,7 +163,7 @@ namespace IceInternal return adapter; } } - + public Ice.ObjectAdapter findObjectAdapter(Ice.ObjectPrx proxy) { List adapters; @@ -173,10 +173,10 @@ namespace IceInternal { return null; } - + adapters = new List(_adapters); } - + foreach(Ice.ObjectAdapterI adapter in adapters) { try @@ -209,7 +209,7 @@ namespace IceInternal } } - public void flushAsyncBatchRequests(CommunicatorFlushBatchAsync outAsync) + public void flushAsyncBatchRequests(Ice.CompressBatch compressBatch, CommunicatorFlushBatchAsync outAsync) { List adapters; lock(this) @@ -219,10 +219,10 @@ namespace IceInternal foreach(Ice.ObjectAdapterI adapter in adapters) { - adapter.flushAsyncBatchRequests(outAsync); + adapter.flushAsyncBatchRequests(compressBatch, outAsync); } } - + // // Only for use by Instance. // @@ -233,7 +233,7 @@ namespace IceInternal _adapterNamesInUse = new HashSet(); _adapters = new List(); } - + private Instance _instance; private Ice.Communicator _communicator; private HashSet _adapterNamesInUse; -- cgit v1.2.3