public void RegisterWorkflow <TWorkflow>() where TWorkflow : IWorkflow, new() { TWorkflow wf = new TWorkflow(); Registry.RegisterWorkflow(wf); }
public void RegisterWorkflow <TWorkflow>() where TWorkflow : IWorkflow { TWorkflow wf = ActivatorUtilities.CreateInstance <TWorkflow>(_serviceProvider); _registry.RegisterWorkflow(wf); }
public void RegisterWorkflow <TWorkflow, TData>() where TWorkflow : IWorkflow <TData>, new() where TData : new() { TWorkflow wf = new TWorkflow(); Registry.RegisterWorkflow <TData>(wf); }