Exemplo n.º 1
0
 /// <summary>
 /// Initializes the singleton instance of the command. Internal method shich should be called only from UI thread.
 /// </summary>
 /// <param name="package">Owner package, not null.</param>
 /// <param name="oleCommandService">The OLE command service.</param>
 /// <returns/>
 internal static void Initialize(Shell.AsyncPackage package, Shell.OleMenuCommandService oleCommandService)
 {
     if (Interlocked.CompareExchange(ref _isCommandInitialized, value: INITIALIZED, comparand: NOT_INITIALIZED) == NOT_INITIALIZED)
     {
         Instance = new GoToDeclarationOrHandlerCommand(package, oleCommandService);
     }
 }
 /// <summary>
 /// Initializes the singleton instance of the command.
 /// </summary>
 /// <param name="package">Owner package, not null.</param>
 public static void Initialize(Package package)
 {
     if (Interlocked.CompareExchange(ref _isCommandInitialized, value: INITIALIZED, comparand: NOT_INITIALIZED) == NOT_INITIALIZED)
     {
         Instance = new GoToDeclarationOrHandlerCommand(package);
     }
 }