Example #1
0
 GetConnectionObserver(Ice.ConnectionInfo c,
                       Ice.Endpoint e,
                       Ice.Instrumentation.ConnectionState s,
                       Ice.Instrumentation.IConnectionObserver? old)
 {
     lock (this)
     {
         TestHelper.Assert(old == null || old is ConnectionObserver);
         if (connectionObserver == null)
         {
             connectionObserver = new ConnectionObserver();
             connectionObserver.reset();
         }
         return(connectionObserver);
     }
 }
Example #2
0
 GetConnectionObserver(ConnectionInfo c,
                       Endpoint e,
                       ConnectionState s,
                       IConnectionObserver?old)
 {
     lock (this)
     {
         TestHelper.Assert(old == null || old is ConnectionObserver);
         if (connectionObserver == null)
         {
             connectionObserver = new ConnectionObserver();
             connectionObserver.reset();
         }
         return(connectionObserver);
     }
 }