private object method_15(IConnection iconnection_1, S2C_ConnectionClosed s2C_ConnectionClosed_0) { Controller.logger_0.Error <ConnectionClosedReason>("Connection closed: {reason}", s2C_ConnectionClosed_0.Reason); EventHandler <S2C_ConnectionClosed> eventHandler = this.eventHandler_0; if (eventHandler != null) { eventHandler(this, s2C_ConnectionClosed_0); } return(null); }
private void method_0(object object_0, S2C_ConnectionClosed s2C_ConnectionClosed_0) { if (s2C_ConnectionClosed_0.Reason == ConnectionClosedReason.ConnectionReset) { this.DisconnectReason = "Your DOPE account already has a connected bot client. If you think this is a mistake, please see the F.A.Q."; return; } if (s2C_ConnectionClosed_0.Reason == ConnectionClosedReason.KeyExpired) { this.DisconnectReason = "You do not have any active licenses. In order to use the bot, please purchase a license first."; return; } this.DisconnectReason = string.Format("Connection failure: {0}", s2C_ConnectionClosed_0.Reason); }