public DBHelper(string path) { SocketSettings.SocketSettings settings = new SocketSettings.SocketSettings(path); delay = settings.MlsOfDelay; client = new Client(settings); lastSettings = settings; }
public ClientSettings( ISocketSettings socketSettings, ISessionSettings sessionSettings, int httpRequestTimeout) { _socketSettings = socketSettings; _sessionSettings = sessionSettings; _httpRequestTimeout = httpRequestTimeout; }
public void LoadTest(string path, string ip, int port, int mls) { ISocketSettings settings = new SocketSettings(ip, port, mls); settings.Save(new MySaverSettings(path)); ILoaderSettings loader = new MyLoaderSettings(path); ISocketSettings loadedSettings = loader.Load(); Assert.AreEqual(settings, loadedSettings); }
public Server(ICommands commands, ISocketSettings settings) { this.commands = commands; IsStarted = false; logger = new Logger.Logger(); if (settings.ServerIP == "current") { this.settings = new SocketSettings.SocketSettings(getLocalIp(), settings.ServerPort, settings.MlsOfDelay); } else { this.settings = settings; } }
public DBHelper(ISocketSettings settings) { client = new Client(settings); delay = settings.MlsOfDelay; lastSettings = settings; }
public ICanSpecifyParser WithSocketType <T>(ISocketSettings <T> settings) where T : class, ISocket { _collection.AddSingleton <ISocket, T>(); _collection.Add(new ServiceDescriptor(settings.GetType(), settings)); return(new CanSpecifyParser(_collection)); }
public ServerProgram(ISocketSettings settings) { commands = new ServerCommands(); server = new Server(commands, settings); mlsToStop = settings.MlsOfDelay; }
public ClientSettings(ISocketSettings socketSettings, ISessionSettings sessionSettings) : this(socketSettings, sessionSettings, 60000) { }
public SocketWrapper(ISocketSettings settings) { _settings = settings; }