Beispiel #1
0
 public void RegisterWithContainer(IDependencyInjectionContainer container)
 {
     container.RegisterInstance <IOperatingSystemServices>(this);
     container.RegisterInstance(this.ComInteropServices);
     container.RegisterInstance(this.FileSystem);
     container.RegisterInstance(this.InternetInformationServicesInterop);
     container.RegisterInstance(this.MachineInformationProvider);
     container.RegisterInstance(this.NetshInterop);
     container.RegisterInstance(this.ThreadingServices);
     container.RegisterInstance(this.TimeServices);
     container.RegisterInstance(this.WindowsServicesManager);
 }
Beispiel #2
0
 public void RegisterWithContainer(IDependencyInjectionContainer container)
 {
     container.RegisterInstance <IUserInterfaceServices>(this);
     container.RegisterType <IWindowsFactory, WpfWindowsFactory>();
     container.RegisterType <IMessageBox, WpfMessageBox>();
     container.RegisterType <IDialogServices, DialogServices>();
 }
Beispiel #3
0
 public void RegisterWithContainer(IDependencyInjectionContainer container)
 {
     container.RegisterInstance <IApplicationServices>(this);
     container.RegisterInstance(this.UserInterfaceServices);
     _userInterfaceServices.RegisterWithContainer(container);
 }