예제 #1
0
 public void LinkTo(EntityApp mainApp)
 {
     MainApp = mainApp;
       MainApp.LinkedApps.Add(this);
       MainApp.ImportServices(this, typeof(IErrorLogService), typeof(IOperationLogService), typeof(IIncidentLogService),
                            typeof(ITransactionLogService), typeof(IWebCallLogService), typeof(INotificationLogService),
                            typeof(ILoginLogService), typeof(IDbUpgradeLogService), typeof(IUserSessionService),
                            typeof(IEventLogService)
                            );
       _transactionLogModule.TargetApp = MainApp;
       //Replace time service with the instance from the main app
       base.TimeService = MainApp.TimeService;
       this.ImportServices(MainApp, typeof(ITimeService));
 }