Get list of RPC registrations?

#1

Is there a way to get the list of URIs at which registrations have been made from a session?

I’m passing an object to .register(…) which returns a Deferred that resolves to a list of IRegistration. But there seems to be no way to get the URI at which the registration was made through the IRegistration API. Is there any public API to get this?

I’d like my session to print the list of registered URIs to the log when starting up, but since I rely on @register decorations, I’m not doing the registrations explicitly.

Cheers,

Elvis

0 Likes

#2

Is there a way to get the list of URIs at which registrations have been
made from a session?

I'm passing an object to .register(..) which returns a Deferred that
resolves to a list of IRegistration. But there seems to be no way to get
the URI at which the registration was made through the IRegistration API.
Is there any public API to get this?

I'd like my session to print the list of registered URIs to the log when
starting up, but since I rely on @register decorations, I'm not doing the
registrations explicitly.

I figured out now that the procedure name actually is available, and that I
can do:

    log.msg('{} procedures registered:'.format(len(registrations)))
    for registration in registrations:
        log.msg(registration.procedure)

However, since the procedure attribute is not part of the interface,
perhaps this is not something I can rely on being available?

Elvis

···

2015-04-24 11:44 GMT+02:00 Elvis Stansvik <elvs...@gmail.com>:

Cheers,
Elvis

--
You received this message because you are subscribed to the Google Groups
"Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to autobahnws+...@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/6ac04611-4412-4aac-b3a9-5f2086f0d481%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/6ac04611-4412-4aac-b3a9-5f2086f0d481%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

0 Likes