/// <summary> /// Changes builder instance. /// </summary> /// <param name="newBuilder">New builder to set.</param> /// <exception cref="System.ArgumentNullException"> /// <paramref name="newBuilder" /> is <c>null</c>. /// </exception> public void ChangeShellBuilder(IShellAsyncBuilder newBuilder) { _shellBuilder = newBuilder.ThrowIfNull(nameof(newBuilder)); }
/// <summary> /// Initializes director with passed builder. /// </summary> /// <param name="shellBuilder">Instance of builder.</param> /// <exception cref="System.ArgumentNullException"> /// <paramref name="shellBuilder" /> is <c>null</c>. /// </exception> public ShellAsyncBuilderDirector(IShellAsyncBuilder shellBuilder) { _shellBuilder = shellBuilder.ThrowIfNull(nameof(shellBuilder)); }