Пример #1
0
 private void ListenForDaoGenServices()
 {
     ServiceProxyResponder.CommonServiceAdded += (t, o) =>
     {
         if (o is IGeneratesDaoAssembly daoGen)
         {
             daoGen.GenerateDaoAssemblySucceeded += (io, a) =>
             {
                 GenerateDaoAssemblyEventArgs args = (GenerateDaoAssemblyEventArgs)a;
                 DaoResponder.RegisterCommonDaoFromDirectory(args.GeneratedAssemblyInfo.GetAssembly().GetFileInfo().Directory);
             };
         }
     };
 }
Пример #2
0
 public void AddAppDaoFromDirectory(string appName, DirectoryInfo daoDir)
 {
     DaoResponder.RegisterAppDaoFromDirectory(appName, daoDir);
 }
Пример #3
0
 public void AddCommonDaoFromDirectory(DirectoryInfo daoDir)
 {
     DaoResponder.RegisterCommonDaoFromDirectory(daoDir);
 }
Пример #4
0
        protected virtual void RegisterWorkspaceDaos()
        {
            DirectoryInfo workspaceDir = new DirectoryInfo(Workspace);

            DaoResponder.RegisterCommonDaoFromDirectory(workspaceDir);
        }
Пример #5
0
 protected void SetDaoResponder()
 {
     _daoResponder = new DaoResponder(GetCurrentConf(true), MainLogger);
     AddResponder(_daoResponder);
 }