Esempio n. 1
0
        public static void UseWorkflow(this IApplicationBuilder app)
        {
            WorkflowActivator.Configure(app.ApplicationServices);

            //var ass_ref = System.Reflection.Assembly.GetEntryAssembly()
            //                                    .GetReferencedAssemblies()
            //                                    .Select(System.Reflection.Assembly.Load)
            //                                    //.SelectMany(x => x.DefinedTypes)
            //                                    .SelectMany(x => x.GetTypes())
            //                                    .OrderBy(t => t.Name)
            //                                    //.ToArray()
            //;


            //var mytypes = System.Reflection.Assembly.GetEntryAssembly().GetTypes();
            //var all = ass_ref.Union(System.Reflection.Assembly.GetEntryAssembly().GetTypes());

            //var types = from t in all
            //            let att = t.GetCustomAttribute<DataContractAttribute>()
            //            where att != null
            //            orderby t.Name
            //            select t;

            //var r = types.ToList();

            //.Where(type => typeof(IProfile).IsAssignableFrom(type));

            //var all = from a in System.Reflection.Assembly.GetEntryAssembly().GetReferencedAssemblies()
            //          select a;

            //var load =

            WorkflowSerialization.initializeKnownTypes(null);
        }
Esempio n. 2
0
        public static void UseWorkflow(this IApplicationBuilder app)
        {
            WorkflowActivator.Configure(app.ApplicationServices);

            WorkflowSerialization.initializeKnownTypes(null);
        }