Method Connect
Connect(View, View, params Command[])
Connects an owner view to a remote view for the specified commands.
When the remote view raises Accepted or Activated for any of the
specified commands, the owner view receives the command with
Bridged routing.
public static CommandBridge Connect(View owner, View remote, params Command[] commands)
Parameters
ownerViewThe view that will receive bridged commands.
remoteViewThe view whose events will be bridged.
commandsCommand[]The commands to bridge (e.g.,
Command.Accept,Command.Activate).
Returns
- CommandBridge
A CommandBridge that can be disposed to tear down the connection.