public void NotifyExtraChanged() { var container = AutofactBuildContainer.BuildContainer(); var notificationService = container.Resolve <INotificationService>(); notificationService.NotifyExtraChanged(); }
public void NotificationTest() { var container = AutofactBuildContainer.BuildContainer(); var notificationService = container.Resolve <INotificationService>(); System.Console.WriteLine("NOTIFICATION DELL CALLED"); notificationService.NotifyDLLChanged(); }
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); }
public void Autofac_ModuleTest() { var container = AutofactBuildContainer.BuildContainer(); var myappRepo = container.Resolve <ProgramModule>(); //var programService = container }