public SagaStepBehaviorFactory(Uri pluginPathUri, int retainOldVersions)
 {
     try
     {
         _pluginSagaStepBehaviorFactory = new PluginClassFactory <ISagaStepBehavior>(retainOldVersions);
         _pluginSagaStepBehaviorFactory.LoadFromDirectory(pluginPathUri);
     }
     catch (Exception ex)
     {
         throw new WorkflowStartupException($"Error occured when loading SagaStepBehaviors from {pluginPathUri.LocalPath}", ex);
     }
 }
Ejemplo n.º 2
0
        public static bool InitDll()
        {
            System.Diagnostics.Trace.WriteLine("COM thread: " + System.Threading.Thread.CurrentThread.GetApartmentState());

            _factory = new PluginClassFactory("Jacobi Software", "*****@*****.**", "http://vstnet.codeplex.com");
            var reg = _factory.Register(typeof(PluginComponent), ClassRegistration.ObjectClasses.AudioModuleClass);

            reg.Categories = new CategoryCollection(CategoryCollection.Fx);

            _factory.Register(typeof(MyEditController), ClassRegistration.ObjectClasses.ComponentControllerClass);

            return(true);
        }
Ejemplo n.º 3
0
 public static void ExitDll()
 {
     _factory.Dispose();
     _factory = null;
 }