Exemplo n.º 1
0
    public void relayUnknownPreservedAsBase(IRelayPrx r, Current current)
    {
        IRelayPrx p = current.Connection.CreateProxy(r.Identity, IRelayPrx.Factory);

        p.unknownPreservedAsBase();
        test(false);
    }
Exemplo n.º 2
0
    public void relayUnknownPreservedAsBase(IRelayPrx r, Ice.Current current)
    {
        IRelayPrx p = IRelayPrx.UncheckedCast(current.Connection.createProxy(r.Identity));

        p.unknownPreservedAsBase();
        test(false);
    }
Exemplo n.º 3
0
Arquivo: TestAMDI.cs Projeto: yzun/ice
    relayUnknownPreservedAsBaseAsync(IRelayPrx r, Ice.Current current)
    {
        IRelayPrx p = current.Connection.CreateProxy(r.Identity, IRelayPrx.Factory);

        p.unknownPreservedAsBase();
        test(false);
        return(null);
    }
Exemplo n.º 4
0
    public void relayUnknownPreservedAsBase(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = current.Connection !.CreateProxy(r.Identity, IRelayPrx.Factory);

        try
        {
            p.unknownPreservedAsBase();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
    }
Exemplo n.º 5
0
    public void relayUnknownPreservedAsBase(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = r.Clone(fixedConnection: current.Connection);

        try
        {
            p.unknownPreservedAsBase();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
    }
Exemplo n.º 6
0
    relayUnknownPreservedAsBaseAsync(IRelayPrx?r, Current current)
    {
        TestHelper.Assert(r != null);
        IRelayPrx p = r.Clone(fixedConnection: current.Connection);

        try
        {
            p.unknownPreservedAsBase();
        }
        catch (RemoteException ex)
        {
            TestHelper.Assert(ex.ConvertToUnhandled);
            ex.ConvertToUnhandled = false;
            throw;
        }
        TestHelper.Assert(false);
        return(new ValueTask(Task.CompletedTask));
    }
Exemplo n.º 7
0
    relayUnknownPreservedAsBaseAsync(IRelayPrx?r, Ice.Current current)
    {
        Debug.Assert(r != null);
        IRelayPrx p = current.Connection.CreateProxy(r.Identity, IRelayPrx.Factory);

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