DBMigratorVsix/DBMigratorWindowCommand.cs
/// <summary>
/// Initializes the singleton instance of the command.
/// </summary>
/// <param name="package">Owner package, not null.</param>
Initializes the singleton instance of the command.
Initializes the singleton instance of the command .
public static async Task InitializeAsync(AsyncPackage package)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken);
            OleMenuCommandService commandService = await package.GetServiceAsync((typeof(IMenuCommandService))) as OleMenuCommandService;
            Instance = new DBMigratorWindowCommand(package, commandService);
        }
public static async Task InitializeAsync ( AsyncPackage package ) { await ThreadHelper . JoinableTaskFactory . SwitchToMainThreadAsync ( package . DisposalToken ) ; OleMenuCommandService commandService = await package . GetServiceAsync ( ( typeof ( IMenuCommandService ) ) ) as OleMenuCommandService ; Instance = new DBMigratorWindowCommand ( package , commandService ) ; }
Initializes the singleton instance of the command.
Initializes the singleton instance of the command .
// Switch to the main thread - the call to AddCommand in DBMigratorWindowCommand's constructor requires // the UI thread.
package
AsyncPackage
Owner package, not null.
Owner package not null .