Пример #1
0
        public ILinkRegistryNeededRuntime <D> Link <D>(IServiceContext serviceContext, D listener)
        {
            LinkRuntime <D> linkRuntime = new LinkRuntime <D>((ServiceContext)serviceContext, typeof(LinkContainer));

            linkRuntime.Listener(listener);
            return(linkRuntime);
        }
Пример #2
0
        public ILinkRegistryNeededRuntime Link(IServiceContext serviceContext, IBeanConfiguration listenerBean, String methodName)
        {
            LinkRuntime <LinkContainer> linkRuntime = new LinkRuntime <LinkContainer>((ServiceContext)serviceContext, typeof(LinkContainer));

            linkRuntime.Listener(listenerBean);
            if (methodName != null)
            {
                linkRuntime.ListenerMethod(methodName);
            }
            return(linkRuntime);
        }
Пример #3
0
        public ILinkRegistryNeededRuntime Link(IServiceContext serviceContext, Object listener, String methodName)
        {
            if (listener is String)
            {
                return(Link(serviceContext, (String)listener));
            }
            else if (listener is IBeanConfiguration)
            {
                return(Link(serviceContext, (IBeanConfiguration)listener));
            }
            LinkRuntime <LinkContainer> linkRuntime = new LinkRuntime <LinkContainer>((ServiceContext)serviceContext, typeof(LinkContainer));

            linkRuntime.Listener(listener);
            if (methodName != null)
            {
                linkRuntime.ListenerMethod(methodName);
            }
            return(linkRuntime);
        }