Exemple #1
0
    public void relayClientPrivateException(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = current.Connection !.CreateProxy(r.Identity, IRelayPrx.Factory);

        try
        {
            p.clientPrivateException();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
    }
Exemple #2
0
    public void relayClientPrivateException(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = r.Clone(fixedConnection: current.Connection);

        try
        {
            p.clientPrivateException();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
    }
Exemple #3
0
    public ValueTask relayClientPrivateExceptionAsync(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = r.Clone(fixedConnection: current.Connection);

        try
        {
            p.clientPrivateException();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
        return(new ValueTask(Task.CompletedTask));
    }
Exemple #4
0
    public ValueTask relayClientPrivateExceptionAsync(IRelayPrx?r, Ice.Current current)
    {
        Debug.Assert(r != null);
        IRelayPrx p = current.Connection.CreateProxy(r.Identity, IRelayPrx.Factory);

        try
        {
            p.clientPrivateException();
        }
        catch (RemoteException ex)
        {
            test(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        test(false);
        return(new ValueTask(Task.CompletedTask));
    }