public SqliteDataLinkService( IDataConnectionFactory connectionFactory, ISqliteHelperService helperService) { this.connectionFactory = connectionFactory; this.helperService = helperService; }
public SqliteDataSeedService( IDataConnectionFactory dataConnectionFactory, ISqliteHelperService helperService) { this.dataConnectionFactory = dataConnectionFactory; this.helperService = helperService; }
/// <summary> /// Initializes a new instance of the <see cref="FtpServer"/> class. /// The server uses custom file, data connection, and authentication provider. /// </summary> /// <param name="endPoint">The local end point to listen, usually 0.0.0.0:21.</param> /// <param name="fileProviderFactory">The <see cref="IFileProviderFactory"/> to use.</param> /// <param name="dataConnFactory">The <see cref="IDataConnectionFactory"/> to use.</param> /// <param name="authenticator">The <see cref="IAuthenticator"/> to use.</param> public FtpServer( IPEndPoint endPoint, IFileProviderFactory fileProviderFactory, IDataConnectionFactory dataConnFactory, IAuthenticator authenticator) : this(endPoint, fileProviderFactory, dataConnFactory, authenticator, null) { }
/// <summary> /// Initializes a new instance of the <see cref="FtpServer"/> class /// with <see cref="SimpleFileProviderFactory"/>, <see cref="LocalDataConnectionFactory"/>, /// and <see cref="AnonymousAuthenticator"/>. /// </summary> /// <param name="endPoint">The local end point to listen, usually 0.0.0.0:21</param> /// <param name="baseDirectory">The directory to provide files</param> public FtpServer(IPEndPoint endPoint, string baseDirectory) { this.endPoint = endPoint; tcpListener = new TcpListener(endPoint); fileProviderFactory = new SimpleFileProviderFactory(baseDirectory); dataConnFactory = new LocalDataConnectionFactory(); authenticator = new AnonymousAuthenticator(); }
/// <summary> /// Initializes a new instance of the <see cref="FtpServer"/> class. /// The server uses custom file, data connection, and authentication provider. /// </summary> /// <param name="endPoint">The local end point to listen, usually 0.0.0.0:21</param> /// <param name="fileProviderFactory">The <see cref="IFileProviderFactory"/> to use</param> /// <param name="dataConnFactory">The <see cref="IDataConnectionFactory"/> to use</param> /// <param name="authenticator">The <see cref="IAuthenticator"/> to use</param> public FtpServer( IPEndPoint endPoint, IFileProviderFactory fileProviderFactory, IDataConnectionFactory dataConnFactory, IAuthenticator authenticator) { this.endPoint = endPoint; tcpListener = new TcpListener(endPoint); this.fileProviderFactory = fileProviderFactory; this.dataConnFactory = dataConnFactory; this.authenticator = authenticator; tracer.CommandInvoked += Tracer_CommandInvoked; tracer.ReplyInvoked += Tracer_ReplyInvoked; }
public RequestProcessor(IDataConnectionFactory dataConnectionFactory, int?pageSizeLimit = null) { _dataConnectionFactory = dataConnectionFactory; _pageSizeLimit = pageSizeLimit ?? 1000; }
/// <summary> /// Конструктор класса /// </summary> /// <param name="connectionFactory"></param> public DbProvider(IDataConnectionFactory connectionFactory) { _connectionFactory = connectionFactory; }
/// <summary> /// Конструктор класса /// </summary> /// <param name="connectionFactory"></param> public EmployeeProvider(IDataConnectionFactory connectionFactory) : base(connectionFactory) { _connectionFactory = connectionFactory; }