Dynamo icon indicating copy to clipboard operation
Dynamo copied to clipboard

IViewExtension trigger two time.

Open chuongmep opened this issue 1 year ago • 1 comments

Dynamo Version

Dynamo Core : 2.16.1.2727 Dynamo Revit : 2.16.6510

Revit Version

2023.1

Operating System

Windows 10

What did you do?

Just add one event to track startup, don't know why startup message box two time

using System.Windows;
using Dynamo.Wpf.Extensions;
using DynamoServices;

namespace ExyteDynamoViewExtension;

public class ExyteDynamoViewExtension : IViewExtension
{
    public void Dispose()
    {
        
    }

    public void Startup(ViewStartupParams p)
    {
        MessageBox.Show("Hello", "HelloViewExtension");
      
    }

    public void Loaded(ViewLoadedParams p)
    {
    }

    public void Shutdown()
    {
        // not implemented
    }

    public string UniqueId => "4A37065C-7A89-4093-9E93-85196B6FFD4D";
    public string Name => "Dynamo Extension";
}

What did you expect to see?

Just one time for this event.

What did you see instead

Message box show two time.

Stacktrace/logs

No response

Details

No response

chuongmep avatar Sep 15 '23 09:09 chuongmep

tracked internally DYN-6243

avidit avatar Sep 15 '23 14:09 avidit