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

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

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

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

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

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

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

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