<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ISplashScreenServiceExtensions.cs" company="">
//   
// </copyright>
// <summary>
//   The splash screen service extensions.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Catel
{
    using MVVM;
    using MVVM.Services;

    /// <summary>
    ///     The splash screen service extensions.
    /// </summary>
    public static class ISplashScreenServiceExtensions
    {
        #region Public Methods and Operators

        /// <summary>
        /// The commit asyc.
        /// </summary>
        /// <param name="this">
        /// The splash screen service.
        /// </param>
        /// <param name="viewModel">
        /// The view model.
        /// </param>
        /// <param name="regionName">
        /// The region name.
        /// </param>
        /// <typeparam name="TViewModel">
        /// The view model type.
        /// </typeparam>
        public static void CommitAsyc<TViewModel>(
            this ISplashScreenService @this, TViewModel viewModel, string regionName)
            where TViewModel : IProgressNotifyableViewModel
        {
            viewModel.GetService<IUIVisualizerService>().Activate(viewModel, regionName);
            @this.CommitAsync(viewModel: viewModel, show: false);
        }

        /// <summary>
        /// The commit asyc.
        /// </summary>
        /// <param name="this">
        /// The splash screen service.
        /// </param>
        /// <param name="viewModel">
        /// The view model.
        /// </param>
        /// <param name="parentViewModel">
        /// The parent view model.
        /// </param>
        /// <param name="regionName">
        /// The region name.
        /// </param>
        /// <typeparam name="TViewModel">
        /// The view model type.
        /// </typeparam>
        public static void CommitAsyc<TViewModel>(
            this ISplashScreenService @this, TViewModel viewModel, IViewModel parentViewModel, string regionName)
            where TViewModel : IProgressNotifyableViewModel
        {
            viewModel.GetService<IUIVisualizerService>().Activate(viewModel, parentViewModel, regionName);
            @this.CommitAsync(viewModel: viewModel, show: false);
        }

        #endregion
    }
}<commit_msg>Added completed callback to ISplashScreenService extensions methods for Prims.<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ISplashScreenServiceExtensions.cs" company="">
//   
// </copyright>
// <summary>
//   The splash screen service extensions.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Catel
{
    using System;

    using MVVM;
    using MVVM.Services;

    /// <summary>
    ///     The splash screen service extensions.
    /// </summary>
    public static class ISplashScreenServiceExtensions
    {
        #region Public Methods and Operators
        /// <summary>
        /// The commit asyc.
        /// </summary>
        /// <param name="this">
        /// The splash screen service.
        /// </param>
        /// <param name="viewModel">
        /// The view model.
        /// </param>
        /// <param name="regionName">
        /// The region name.
        /// </param>
        /// <param name="completedCallback">
        /// The completed callback.
        /// </param>
        /// <typeparam name="TViewModel">
        /// The view model type.
        /// </typeparam>
        public static void CommitAsyc<TViewModel>(this ISplashScreenService @this, TViewModel viewModel, string regionName, Action completedCallback = null) where TViewModel : IProgressNotifyableViewModel
        {
            viewModel.GetService<IUIVisualizerService>().Activate(viewModel, regionName);
            @this.CommitAsync(viewModel: viewModel, show: false, completedCallback: completedCallback);
        }

        /// <summary>
        /// The commit asyc.
        /// </summary>
        /// <param name="this">
        /// The splash screen service.
        /// </param>
        /// <param name="viewModel">
        /// The view model.
        /// </param>
        /// <param name="parentViewModel">
        /// The parent view model.
        /// </param>
        /// <param name="regionName">
        /// The region name.
        /// </param>
        /// <param name="completedCallback">
        /// The completed callback.
        /// </param>
        /// <typeparam name="TViewModel">
        /// The view model type.
        /// </typeparam>
        public static void CommitAsyc<TViewModel>(this ISplashScreenService @this, TViewModel viewModel, IViewModel parentViewModel, string regionName, Action completedCallback = null)
            where TViewModel : IProgressNotifyableViewModel
        {
            viewModel.GetService<IUIVisualizerService>().Activate(viewModel, parentViewModel, regionName);
            @this.CommitAsync(viewModel: viewModel, show: false, completedCallback: completedCallback);
        }

        #endregion
    }
}
{'fraction_non_alphanumeric': 0.21200224340998317, 'fraction_numerical': 0.0, 'mean_word_length': 1.4318181818181819, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2567439', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1243, 'n_words': 324}