Example #1
0
    public void opVoidAsync(Action response, Action <Exception> exception, Ice.Current current)
    {
        test(current.mode == Ice.OperationMode.Normal);

        while (_opVoidThread != null)
        {
            _opVoidThread.Join();
            _opVoidThread = null;
        }
        _opVoidThread = new Thread_opVoid(response);
        _opVoidThread.Start();
    }
Example #2
0
    public void opVoid_async(Test.AMD_MyClass_opVoid cb, Ice.Current current)
    {
        test(current.mode == Ice.OperationMode.Normal);

        while (_opVoidThread != null)
        {
            _opVoidThread.Join();
            _opVoidThread = null;
        }

        _opVoidThread = new Thread_opVoid(cb);
        _opVoidThread.Start();
    }
Example #3
0
        public ValueTask opVoidAsync(Current current)
        {
            TestHelper.Assert(!current.IsIdempotent);

            while (_opVoidThread != null)
            {
                _opVoidThread.Join();
                _opVoidThread = null;
            }

            _opVoidThread = new Thread_opVoid();
            _opVoidThread.Start();
            return(new ValueTask(_opVoidThread.Task));
        }
Example #4
0
                    public Task opVoidAsync(Ice.Current current)
                    {
                        test(current.mode == Ice.OperationMode.Normal);

                        while (_opVoidThread != null)
                        {
                            _opVoidThread.Join();
                            _opVoidThread = null;
                        }

                        _opVoidThread = new Thread_opVoid();
                        _opVoidThread.Start();
                        return(_opVoidThread.Task);
                    }
Example #5
0
    public override void opVoid_async(Test.AMD_MyClass_opVoid cb, Ice.Current current)
    {
        test(current.mode == Ice.OperationMode.Normal);

        while(_opVoidThread != null)
        {
            _opVoidThread.Join();
            _opVoidThread = null;
        }

        _opVoidThread = new Thread_opVoid(cb);
        _opVoidThread.Start();
    }
Example #6
0
    public override void shutdown_async(Test.AMD_MyClass_shutdown cb, Ice.Current current)
    {
        while(_opVoidThread != null)
        {
            _opVoidThread.Join();
            _opVoidThread = null;
        }

        current.adapter.getCommunicator().shutdown();
        cb.ice_response();
    }