void Server_ConnectionAttached(object sender, ConnectionAttachEventArgs e) { if (ConnectionAttached != null) { ConnectionAttached(sender, e); } }
protected virtual void OnConnectionDetached(ConnectionAttachEventArgs e) { if (ConnectionDetached != null) { ConnectionDetached(this, e); } }
void Server_ConnectionAttached(object sender, ConnectionAttachEventArgs e) { if (ConnectionAttached != null) { ConnectionAttached(sender, e); } }
static void _server_ConnectionAttached(object sender, ConnectionAttachEventArgs e) { }
void _server_ConnectionAttached(object sender, ConnectionAttachEventArgs e) { _notifyIcon.ShowBalloonTip(1000 * 10, Name, String.Format("ユーザ {0} がサーバに接続しました。", ((Connection)(e.Connection)).TwitterUser.ScreenName), ToolTipIcon.Info); }
protected virtual void OnConnectionDetached(ConnectionAttachEventArgs e) { if (ConnectionDetached != null) ConnectionDetached(this, e); }
void _server_ConnectionAttached(object sender, ConnectionAttachEventArgs e) { StringWriter sw = new StringWriter(); User twitterUser = ((Connection)(e.Connection)).TwitterUser; sw.WriteLine("ユーザ {0} が接続しました。", twitterUser.ScreenName); sw.WriteLine(); sw.WriteLine("IP: {0}", e.Connection.UserInfo.EndPoint); sw.WriteLine("Twitter User: {0} (ID:{1})", twitterUser.ScreenName, twitterUser.Id); EventLog.WriteEntry(sw.ToString(), EventLogEntryType.Information, 1000); }