private static void Bind(IRdBindable instance, Lifetime lifetime, IProtocol protocol)
        {
            var typename = instance.GetType().Name;

            instance.Identify(protocol.Identities, RdId.Root.Mix(typename));
            instance.Bind(lifetime, protocol, typename);
        }
Ejemplo n.º 2
0
        private static void Top(IRdBindable rdBindable, Lifetime lifetime, IProtocol protocol)
        {
            var name = rdBindable.GetType().Name;

            rdBindable.Identify(protocol.Identities, RdId.Nil.Mix(name));
            rdBindable.Bind(lifetime, protocol, name);
        }