private void OnDataSent(DataSentEventArgs e) { if (DataSent != null) { DataSent(this, e); } }
internal void OnDataSent(DataSentEventArgs e) { if (DataSent != null) { DataSent(this, e); } }
private void Client_DataSent(object sender, DataSentEventArgs e) { lock (this) { if (DataSent != null) { DataSent(this, e); } } }
private void ClientServer_DataSent(object sender, DataSentEventArgs e) { try { var action = _sendList[e.ClientId].Dequeue(); _actionFactory.SendAction(action, e.Stream); } catch {} }
/// <summary> /// The event handler for OnDataSend. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void FicsClient_OnDataSend(object sender, DataSentEventArgs e) { _consoleManager.WriteLine($"$R{FICSConstants.SendPrefix}: $r{e.Text}"); _textLogger.WriteLine($"{FICSConstants.SendPrefix}: {e.Text}"); }
internal void OnDataSent(DataSentEventArgs e) { if (DataSent != null) DataSent(this, e); }
/// <summary> /// Raise data sent event /// </summary> protected void OnDataSent(DataSentEventArgs e) { if (DataSent != null) DataSent(this, e); }
private static void DataSent(object sender, DataSentEventArgs e) { Console.WriteLine("[" + e.IpPort + "] sent " + e.BytesSent + " bytes"); }
void client_DataSent(object sender, DataSentEventArgs e) { sent += e.Sent; updateSent(); }