Ejemplo n.º 1
0
 private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection,
     AssemblyHandler handler)
 {
     if (handler.HasType<IExecutorProvider>())
     {
         return handler.CreateInstance<IExecutorProvider>(_config, database, connection);
     }
     return new DefaultExecutorProvider(_config, database, connection);
 }
Ejemplo n.º 2
0
 private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection,
                                                  AssemblyHandler handler)
 {
     if (handler.HasType <IExecutorProvider>())
     {
         return(handler.CreateInstance <IExecutorProvider>(_config, database, connection, _cSharpExecutor));
     }
     return(new DefaultExecutorProvider(_config, database, connection, _cSharpExecutor));
 }
        private void init()
        {
            List <IAccept> acs = AssemblyHandler.CreateInstance <IAccept>();

            foreach (IAccept ac in acs)
            {
                this.receiveMsgCallBack += ac.acceptMessage;
            }

            List <IClient> cls = AssemblyHandler.CreateInstance <IClient>();

            foreach (IClient cl in cls)
            {
                cl.init(this);
            }
        }