コード例 #1
0
ファイル: MyDerivedClassAMDTieI.cs プロジェクト: pirater/ice
    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();
    }
コード例 #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();
    }
コード例 #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));
        }
コード例 #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);
                    }
コード例 #5
0
ファイル: MyDerivedClassAMDI.cs プロジェクト: joshmoore/ice
    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();
    }