Esempio n. 1
0
 private void PrintInfo(string extPoint, ExtensionNodeEventArgs args, Mono.Addins.TypeExtensionNode extNode)
 {
     Log.Debug("###########################");
     Log.Debug($"'{extPoint}'");
     Log.Debug($"  Id      - '{args.ExtensionNode.Id}'");
     Log.Debug($"  Path    - '{args.Path}'");
     Log.Debug($"  Node    - '{args.ExtensionNode}'");
     Log.Debug($"  Object  - '{args.ExtensionObject}'");
     Log.Debug($"  Changed - '{args.Change.ToString()}'");
     Log.Debug("   --[ ExtensionNode ]------");
     Log.Debug($"  Id      - '{extNode.Id}'");
     Log.Debug($"  ToString- '{extNode.ToString()}'");
     Log.Debug($"  TypeName- '{extNode.TypeName}'");
 }
Esempio n. 2
0
        private void StartupHandler_ExtensionChanged(object sender, Mono.Addins.ExtensionNodeEventArgs args)
        {
            LogDebug("OnStartChanged {");
            LogDebug($"  Path    - {args.Path}");
            LogDebug($"  Node    - {args.ExtensionNode}");
            LogDebug($"  Object  - {args.ExtensionObject}");
            LogDebug($"  Changed - {args.Change.ToString()}");

            Mono.Addins.TypeExtensionNode extNode = args.ExtensionNode as Mono.Addins.TypeExtensionNode;
            LogDebug($"  ExtNode: {extNode.ToString()}");

            LogDebug("  Running...");
            IStartupExtension ext = (IStartupExtension)args.ExtensionObject;

            ext.Run();

            LogDebug("}");
        }
Esempio n. 3
0
        private void OnStartupExtensionChanged(object sender, Mono.Addins.ExtensionNodeEventArgs args)
        {
            Log.Debug("###########################");
            Log.Debug("OnStartChanged {");
            Log.Debug($"  Id      - '{args.ExtensionNode.Id}'");
            Log.Debug($"  Path    - '{args.Path}'");
            Log.Debug($"  Node    - '{args.ExtensionNode}'");
            Log.Debug($"  Object  - '{args.ExtensionObject}'");
            Log.Debug($"  Changed - '{args.Change.ToString()}'");

            Mono.Addins.TypeExtensionNode extNode = args.ExtensionNode as Mono.Addins.TypeExtensionNode;
            Log.Debug("   --[ ExtensionNode ]------");
            Log.Debug($"  Id      - '{extNode.Id}'");
            Log.Debug($"  ToString- '{extNode.ToString()}'");
            Log.Debug($"  TypeName- '{extNode.TypeName}'");
            Log.Debug("# # # # # # # # # # #");

            Log.Debug("  Running...");
            IStartupExtension ext = (IStartupExtension)args.ExtensionObject;

            ext.Run();

            Log.Debug("}");
        }