예제 #1
0
 /// <summary>
 ///     Registers the shell command recipient that will allow the shell to get commands from the Alfred
 ///     layer.
 /// </summary>
 /// <param name="shell">The command recipient.</param>
 public void Register(IShellCommandRecipient shell)
 {
     ShellCommandHandler = shell;
 }
예제 #2
0
 /// <summary>
 ///     Registers the shell command recipient that will allow the shell to get commands from the Alfred
 ///     layer.
 /// </summary>
 /// <param name="shell">The command recipient.</param>
 /// <exception cref="ArgumentNullException"><paramref name="shell" /> is <see langword="null" />.</exception>
 public void Register(IShellCommandRecipient shell)
 {
     if (shell == null) { throw new ArgumentNullException(nameof(shell)); }
     ShellCommandHandler = shell;
 }