/// <summary> /// Initializes a new instance of the <see cref="DialogService"/> class. /// </summary> /// <param name="contentDialogFactory"> /// Factory responsible for creating content dialogs. /// </param> /// <param name="contentDialogTypeLocator"> /// Interface responsible for finding a dialog type matching a view model. /// </param> public DialogService( IContentDialogFactory contentDialogFactory, IDialogTypeLocator contentDialogTypeLocator = null) { this.contentDialogFactory = contentDialogFactory ?? throw new ArgumentNullException(nameof(contentDialogFactory)); this.contentDialogTypeLocator = contentDialogTypeLocator ?? throw new ArgumentNullException(nameof(contentDialogTypeLocator)); }
/// <summary> /// Initializes a new instance of the <see cref="DialogService"/> class. /// </summary> /// <param name="dialogFactory"> /// Factory responsible for creating dialogs. Default value is an instance of /// <see cref="ReflectionDialogFactory"/>. /// </param> /// <param name="dialogTypeLocator"> /// Locator responsible for finding a dialog type matching a view model. Default value is /// an instance of <see cref="NamingConventionDialogTypeLocator"/>. /// </param> /// <param name="frameworkDialogFactory"> /// Factory responsible for creating framework dialogs. Default value is an instance of /// <see cref="DefaultFrameworkDialogFactory"/>. /// </param> public DialogService( IDialogFactory dialogFactory = null, IDialogTypeLocator dialogTypeLocator = null, IFrameworkDialogFactory frameworkDialogFactory = null) { this.dialogFactory = dialogFactory ?? new ReflectionDialogFactory(); this.dialogTypeLocator = dialogTypeLocator ?? new NamingConventionDialogTypeLocator(); this.frameworkDialogFactory = frameworkDialogFactory ?? new DefaultFrameworkDialogFactory(); }
/// <summary> /// Initializes a new instance of the <see cref="DialogService"/> class. /// </summary> /// <param name="dialogFactory"> /// Factory responsible for creating dialogs. /// </param> /// <param name="dialogTypeLocator"> /// Interface responsible for finding a dialog type matching a view model. /// </param> public DialogService( IDialogFactory dialogFactory, IDialogTypeLocator dialogTypeLocator) { if (dialogFactory == null) { throw new ArgumentNullException(nameof(dialogFactory)); } if (dialogTypeLocator == null) { throw new ArgumentNullException(nameof(dialogTypeLocator)); } this.dialogFactory = dialogFactory; this.dialogTypeLocator = dialogTypeLocator; }
/// <summary> /// Initializes a new instance of the <see cref="DialogService"/> class. /// </summary> /// <param name="contentDialogTypeLocator"> /// Interface responsible for finding a content dialog type matching a view model. /// </param> /// <remarks> /// By default <see cref="ReflectionContentDialogFactory"/> is used as dialog factory. /// </remarks> public DialogService(IDialogTypeLocator contentDialogTypeLocator) : this(new ReflectionContentDialogFactory(), contentDialogTypeLocator) { }
/// <summary> /// Initializes a new instance of the <see cref="DialogService"/> class. /// </summary> /// <param name="dialogTypeLocator"> /// Interface responsible for finding a dialog type matching a view model. /// </param> /// <remarks> /// By default <see cref="ReflectionDialogFactory"/> is used as dialog factory. /// </remarks> public DialogService(IDialogTypeLocator dialogTypeLocator) : this(new ReflectionDialogFactory(), dialogTypeLocator) { }
public LocalDialogService(IDialogTypeLocator dialogTypeLocator) : base(null, dialogTypeLocator) { }