/// <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); }
/// <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); }