Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new RPC behaviour and binds the interfaces.
        /// </summary>
        /// <param name="interfaceTypes">The interface types.</param>
        /// <param name="interfaceBehaviours">The interface behaviours.</param>
        /// <returns></returns>
        public static RpcBehaviour BindMany(Type[] interfaceTypes, object[] interfaceBehaviours)
        {
            RpcBehaviour rpcBehaviour = new RpcBehaviour();

            rpcBehaviour.Attach(interfaceTypes, interfaceBehaviours);
            return(rpcBehaviour);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new RPC behaviour and binds the interface type.
        /// </summary>
        /// <param name="interfaceType">The interface type.</param>
        /// <param name="interfaceBehaviour">The implementation of the interface behaviour.</param>
        /// <returns></returns>
        public static RpcBehaviour Bind(Type interfaceType, object interfaceBehaviour)
        {
            RpcBehaviour rpcBehaviour = new RpcBehaviour();

            rpcBehaviour.Attach(interfaceType, interfaceBehaviour);
            return(rpcBehaviour);
        }
Ejemplo n.º 3
0
 public QueryInterface(RpcBehaviour behaviour)
 {
     _behaviour = behaviour;
 }