예제 #1
0
        public void SetUp()
        {
            var smartAgentDb = new SqlConnection(ConfigurationManager.ConnectionStrings["SmartAgentDev"].ConnectionString);
            var kernel = new StandardKernel( new CreatorModule(smartAgentDb));
            _creator = kernel.Get<IClientCreator>();
            _clientMasterRepo = kernel.Get<IAsyncRepository<ClientMaster>>();

            IntialiseParams();            
        }
예제 #2
0
 public ClientController(
     IClientAppRepo repository,
     ISecurityService securityService,
     ISandboxProvisioner sandboxProvisioner,
     IClientCreator clientCreator)
 {
     _repository         = repository;
     _securityService    = securityService;
     _sandboxProvisioner = sandboxProvisioner;
     _clientCreator      = clientCreator;
 }
예제 #3
0
 public InitializationEngine(
     InitializationModel initializationModel,
     IClientAppRepo clientAppRepo,
     IClientCreator clientCreator,
     ITemplateDatabaseLeaQuery templateDatabaseLeaQuery,
     IDefaultApplicationCreator applicationCreator
     )
 {
     _settings                 = initializationModel;
     _clientAppRepo            = clientAppRepo;
     _clientCreator            = clientCreator;
     _templateDatabaseLeaQuery = templateDatabaseLeaQuery;
     _applicationCreator       = applicationCreator;
 }
 public InitializationEngine(
     IOptions <Dictionary <string, UserOptions> > users,
     IClientAppRepo clientAppRepo,
     IClientCreator clientCreator,
     ITemplateDatabaseLeaQuery templateDatabaseLeaQuery,
     IDefaultApplicationCreator applicationCreator,
     IIdentityProvider identityProvider
     )
 {
     _users                    = users.Value;
     _clientAppRepo            = clientAppRepo;
     _clientCreator            = clientCreator;
     _templateDatabaseLeaQuery = templateDatabaseLeaQuery;
     _applicationCreator       = applicationCreator;
     _identityProvider         = identityProvider;
 }
예제 #5
0
 /// <summary>
 /// 创建FlyClient
 /// </summary>
 /// <param name="creator">创建指定协议的客户端</param>
 public FlyClient(IClientCreator creator)
 {
     _creator = creator;
 }
 public ServerController(IConnectionController connectionController, IClientCreator clientCreator)
 {
     this._clientCreator        = clientCreator;
     this._connectionController = connectionController;
 }
 public ClientProvider(IClientCreator clientCreator)
 {
     Client = clientCreator.CreateClient();
 }
 public RecordDocumentService(
     IClientCreator clientCreator)
 {
     _clientCreator = clientCreator;
 }