public virtual NeoDatis.Odb.Core.Server.Connection.IConnection NewConnection(string ip, long dateTime, int sequence) { string connectionId = NeoDatis.Odb.Core.Server.Connection.ConnectionIdGenerator.NewId (ip, dateTime, sequence); NeoDatis.Odb.Core.Server.Connection.IConnection connection = new NeoDatis.Odb.Impl.Core.Server.Connection.DefaultServerConnection (this, connectionId, storageEngine); connections.Add(connectionId, connection); return connection; }
public override bool Equals(object obj) { if (obj == null || !(obj is NeoDatis.Odb.Impl.Core.Server.Connection.DefaultServerConnection )) { return(false); } NeoDatis.Odb.Impl.Core.Server.Connection.DefaultServerConnection c = (NeoDatis.Odb.Impl.Core.Server.Connection.DefaultServerConnection )obj; return(id.Equals(c.id)); }
public virtual NeoDatis.Odb.Core.Server.Connection.IConnection NewConnection(string ip, long dateTime, int sequence) { string connectionId = NeoDatis.Odb.Core.Server.Connection.ConnectionIdGenerator.NewId (ip, dateTime, sequence); NeoDatis.Odb.Core.Server.Connection.IConnection connection = new NeoDatis.Odb.Impl.Core.Server.Connection.DefaultServerConnection (this, connectionId, storageEngine); connections.Add(connectionId, connection); return(connection); }