示例#1
0
        public void RegisterWorkflow <TWorkflow>()
            where TWorkflow : IWorkflow, new()
        {
            TWorkflow wf = new TWorkflow();

            Registry.RegisterWorkflow(wf);
        }
示例#2
0
        public void RegisterWorkflow <TWorkflow>()
            where TWorkflow : IWorkflow
        {
            TWorkflow wf = ActivatorUtilities.CreateInstance <TWorkflow>(_serviceProvider);

            _registry.RegisterWorkflow(wf);
        }
示例#3
0
        public void RegisterWorkflow <TWorkflow, TData>()
            where TWorkflow : IWorkflow <TData>, new()
            where TData : new()
        {
            TWorkflow wf = new TWorkflow();

            Registry.RegisterWorkflow <TData>(wf);
        }