/// <summary> /// Send the failure message to our own app instance /// </summary> /// <param name="appInstance">An app instance</param> public override void VisitAppInstance(AppInstance appInstance) { if (appInstance == this.Instance) { appInstance.Send("MSG_GENERAL_FAILURE " + Failure.Serialize()); } }
/// <summary> /// Send a message to this app instance that manifest failed /// </summary> /// <param name="appInstance">the app instance to visit</param> public override void VisitAppInstance(AppInstance appInstance) { if (appInstance == instance) { appInstance.Send("APP_MANIFEST_FAIL " + Fail.Serialize()); appInstance.Disconnect(); } }
private void sendQueryTo(AppInstance other) { var toSend = "MSG_QUERY " + this.query.Serialize(); other.Send(toSend); }