예제 #1
0
파일: Program.cs 프로젝트: arastoul/NRules
        private static void Main(string[] args)
        {
            var repository = new RuleRepository();

            repository.Load(x => x.From(Assembly.GetExecutingAssembly()));

            ISessionFactory factory = repository.Compile();
            ISession        session = factory.CreateSession();

            session.Insert(new Fact1 {
                TestProperty = "Valid Value"
            });

            VisualizerHost.Visualize(session);
        }
예제 #2
0
        public static void Visualize(ISession session)
        {
            var host = new VisualizerHost(session);

            host.ShowVisualizer();
        }