Beispiel #1
0
        public void NotifyExtraChanged()
        {
            var container           = AutofactBuildContainer.BuildContainer();
            var notificationService = container.Resolve <INotificationService>();

            notificationService.NotifyExtraChanged();
        }
Beispiel #2
0
        public void NotificationTest()
        {
            var container           = AutofactBuildContainer.BuildContainer();
            var notificationService = container.Resolve <INotificationService>();

            System.Console.WriteLine("NOTIFICATION DELL CALLED");
            notificationService.NotifyDLLChanged();
        }
Beispiel #3
0
        public void Autofac_AppInfra_DisplayMessage()
        {
            AppInfra appInfra = new AppInfra()
            {
                Id    = 1,
                Name  = "MyTask",
                Usage = "Management service for my task."
            };
            var container = AutofactBuildContainer.BuildContainer();
            var myappRepo = container.Resolve <IAppInfra>();

            myappRepo.Print(appInfra);
        }
Beispiel #4
0
 public void Autofac_ModuleTest()
 {
     var container = AutofactBuildContainer.BuildContainer();
     var myappRepo = container.Resolve <ProgramModule>();
     //var programService = container
 }