Ejemplo n.º 1
0
        void IPexExplorationPackage.Initialize(IPexExplorationEngine host)
        {
            //This is required to invoke initialize method of FieldAccessExplorationObserver
            var explorationObserver = ServiceProviderHelper.GetService <IFieldAccessExplorationObserver>(host);

            this.pmd = host.GetService <IPexMeDynamicDatabase>() as PexMeDynamicDatabase;
        }
Ejemplo n.º 2
0
        void IPexPathPackage.AfterRun(IPexPathComponent host, object data)
        {
            FieldAccessPathObserver fieldAccessPathObserver =
                ServiceProviderHelper.GetService <FieldAccessPathObserver>(host.Site);

            fieldAccessPathObserver.Analyze();
        }
Ejemplo n.º 3
0
 void IPexExplorationPackage.AfterExploration(IPexExplorationComponent host, object data)
 {
     if (this.iofo == null)
     {
         this.iofo = ServiceProviderHelper.GetService <InsufficientObjectFactoryObserver>(host.Site);
     }
     this.iofo.AfterExecution();
 }
Ejemplo n.º 4
0
        void IPexExplorationPackage.AfterExploration(
            IPexExplorationComponent host,
            object data)
        {
            FieldAccessObserver observer =
                ServiceProviderHelper.GetService <FieldAccessObserver>(host.Site);

            observer.Dump();
        }
        void IPexExplorationPackage.AfterExploration(
            IPexExplorationComponent host,
            object data)
        {
            var observer =
                ServiceProviderHelper.GetService <InsufficientObjectFactoryObserver>(host.Site);

            observer.Dump();
        }
Ejemplo n.º 6
0
        public static void Main(string[] args)
        {
            var host = BuildWebHost(args);

            using (var context = ServiceProviderHelper.GetService <AppDbContext>())
            {
                context.Database.EnsureCreated();
            }

            host.Run();
        }
Ejemplo n.º 7
0
 public CategoriesController()
 {
     _categoryService = ServiceProviderHelper.GetService <ICategoryService>();
 }
 void IPexExplorationPackage.Initialize(
     IPexExplorationEngine host)
 {
     var observer =
         ServiceProviderHelper.GetService <InsufficientObjectFactoryObserver>(host);
 }
Ejemplo n.º 9
0
 void IPexExplorationPackage.Initialize(IPexExplorationEngine host)
 {
     //This is required to invoke the initialize() method of InsufficientObjectFactoryObserver
     var observer = ServiceProviderHelper.GetService <InsufficientObjectFactoryObserver>(host);
 }