private void SendBye(Context context, CallbackPacket packet) { if (context == null) { return; } try { context.BadSession(); } catch (Exception) { // We can do nothing here. } }
private void Send(Context context, CallbackPacket packet) { if (context == null) { return; } try { if (packet == null) { context.Send(); } else { context.SetCookie("CBID", packet.Id.ToString(CultureInfo.InvariantCulture)); context.Send(packet.Data); } } catch (HttpRequestException) { // We can do nothing here. } catch (ObjectDisposedException) { // We can do nothing here. } catch (Exception ex) { try { context.Send(ex); } catch (Exception) { // We can do nothing here. } } }
public ResponseInfo(Context context, CallbackPacket packet) { this.Context = context; this.Packet = packet; }