private void Constructor(Connection con, ConnectionArguments cargs) { this._messageCallbacks = new Dictionary <string, Action <FluentConnectionWrapper, Message> >(); this._discon = DisconnectionType.Unexplained; this._cargs = cargs; this._con = con; AddHooks(); }
public FluentConnectionWrapper(FluentMultiplayerWrapper fmw, Connection con, ConnectionArguments cargs) { this._fmw = fmw; Constructor(con, cargs); }
public FluentConnectionWrapper(Connection con, ConnectionArguments cargs) { this._fmw = null; Constructor(con, cargs); }
public static FluentConnectionWrapper Reconnect(this FluentConnectionWrapper m, ConnectionArguments cargs) { m.ResetConnection(cargs); return(m); }