public void Open() { var connection = new GdsConnection(_ipAddress, _portNumber, _timeout); connection.Connect(); _database = new GdsDatabase(connection); }
public async Task Open(AsyncWrappingCommonArgs async) { var connection = new GdsConnection(_ipAddress, _portNumber, _timeout); await connection.Connect(async).ConfigureAwait(false); _database = new GdsDatabase(connection); }
public GdsEventManager(int handle, string ipAddress, int portNumber) { _handle = handle; var connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); _database = new GdsDatabase(connection); }
public GdsEventManager(int handle, string ipAddress, int portNumber) { _events = new ConcurrentDictionary <int, RemoteEvent>(); _handle = handle; // Initialize the connection if (_database == null) { GdsConnection connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); _database = new GdsDatabase(connection); } }
public GdsEventManager(int handle, string ipAddress, int portNumber) { _events = new ConcurrentDictionary<int, RemoteEvent>(); _handle = handle; // Initialize the connection if (_database == null) { GdsConnection connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); _database = new GdsDatabase(connection); } }
public GdsEventManager(int handle, string ipAddress, int portNumber) { this.events = new Hashtable(); this.events = Hashtable.Synchronized(this.events); this.handle = handle; this.syncContext = SynchronizationContext.Current ?? new SynchronizationContext(); // Initialize the connection if (this.database == null) { GdsConnection connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); this.database = new GdsDatabase(connection); } }
//public Hashtable EventList //{ // get { return this.events; } //} #endregion #region · Constructors · public GdsEventManager(int handle, string ipAddress, int portNumber) { this.events = new Hashtable(); this.events = Hashtable.Synchronized(this.events); this.handle = handle; #if (NET_CF) this.syncControl = new System.Windows.Forms.Control(); IntPtr h = this.syncControl.Handle; // force handle creation #else this.syncContext = SynchronizationContext.Current ?? new SynchronizationContext(); #endif // Initialize the connection if (this.database == null) { GdsConnection connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); this.database = new GdsDatabase(connection); } }
//public Hashtable EventList //{ // get { return this.events; } //} #endregion #region · Constructors · public GdsEventManager(int handle, string ipAddress, int portNumber) { this.events = new Hashtable(); this.events = Hashtable.Synchronized(this.events); this.handle = handle; #if (NET_CF) this.syncControl = new System.Windows.Forms.Control(); IntPtr h = this.syncControl.Handle; // force handle creation #else this.syncContext = SynchronizationContext.Current ?? new SynchronizationContext(); #endif // Initialize the connection if (this.database == null) { GdsConnection connection = new GdsConnection(ipAddress, portNumber); connection.Connect(); this.database = new GdsDatabase(connection); } }