Пример #1
0
 public override void Load()
 {
     Kernel?.Bind <ICommonAssemblyFactory>().ToMethod(c => new CommonAssemblyFactory());
     Kernel.Bind(c => c.FromThisAssembly().SelectAllClasses().BindAllInterfaces().Configure(y => y.InSingletonScope()));
     Kernel.Bind(c => c.FromThisAssembly().SelectAllClasses().BindAllBaseClasses().Configure(y => y.InSingletonScope()));
     Kernel?.Rebind <ApplicationPatcherSelfConfiguration>().ToMethod(c => ApplicationPatcherSelfConfiguration.ReadConfiguration());
 }
 public ApplicationPatcherSelf(ApplicationPatcherCore applicationPatcherCore, ApplicationPatcherSelfConfiguration applicationPatcherSelfConfiguration)
 {
     this.applicationPatcherCore = applicationPatcherCore;
     this.applicationPatcherSelfConfiguration = applicationPatcherSelfConfiguration;
     log = Log.For(this);
 }