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(); }
public ClientController( IClientAppRepo repository, ISecurityService securityService, ISandboxProvisioner sandboxProvisioner, IClientCreator clientCreator) { _repository = repository; _securityService = securityService; _sandboxProvisioner = sandboxProvisioner; _clientCreator = clientCreator; }
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; }
/// <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; }