Ejemplo n.º 1
0
 void Server_ConnectionAttached(object sender, ConnectionAttachEventArgs e)
 {
     if (ConnectionAttached != null)
     {
         ConnectionAttached(sender, e);
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnConnectionDetached(ConnectionAttachEventArgs e)
 {
     if (ConnectionDetached != null)
     {
         ConnectionDetached(this, e);
     }
 }
Ejemplo n.º 3
0
 void Server_ConnectionAttached(object sender, ConnectionAttachEventArgs e)
 {
     if (ConnectionAttached != null)
     {
         ConnectionAttached(sender, e);
     }
 }
Ejemplo n.º 4
0
 static void _server_ConnectionAttached(object sender, ConnectionAttachEventArgs e)
 {
 }
Ejemplo n.º 5
0
 void _server_ConnectionAttached(object sender, ConnectionAttachEventArgs e)
 {
     _notifyIcon.ShowBalloonTip(1000 * 10, Name, String.Format("ユーザ {0} がサーバに接続しました。", ((Connection)(e.Connection)).TwitterUser.ScreenName), ToolTipIcon.Info);
 }
Ejemplo n.º 6
0
 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);
 }