[Modify] Polish it
This commit is contained in:
@@ -32,9 +32,9 @@ namespace Example2
|
|||||||
return Interlocked.Increment (ref _number);
|
return Interlocked.Increment (ref _number);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnOpen ()
|
protected override void OnClose (CloseEventArgs e)
|
||||||
{
|
{
|
||||||
_name = getName ();
|
Sessions.Broadcast (String.Format ("{0} got logged off...", _name));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMessage (MessageEventArgs e)
|
protected override void OnMessage (MessageEventArgs e)
|
||||||
@@ -42,9 +42,9 @@ namespace Example2
|
|||||||
Sessions.Broadcast (String.Format ("{0}: {1}", _name, e.Data));
|
Sessions.Broadcast (String.Format ("{0}: {1}", _name, e.Data));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnClose (CloseEventArgs e)
|
protected override void OnOpen ()
|
||||||
{
|
{
|
||||||
Sessions.Broadcast (String.Format ("{0} got logged off...", _name));
|
_name = getName ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -32,9 +32,9 @@ namespace Example3
|
|||||||
return Interlocked.Increment (ref _number);
|
return Interlocked.Increment (ref _number);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnOpen ()
|
protected override void OnClose (CloseEventArgs e)
|
||||||
{
|
{
|
||||||
_name = getName ();
|
Sessions.Broadcast (String.Format ("{0} got logged off...", _name));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMessage (MessageEventArgs e)
|
protected override void OnMessage (MessageEventArgs e)
|
||||||
@@ -42,9 +42,9 @@ namespace Example3
|
|||||||
Sessions.Broadcast (String.Format ("{0}: {1}", _name, e.Data));
|
Sessions.Broadcast (String.Format ("{0}: {1}", _name, e.Data));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnClose (CloseEventArgs e)
|
protected override void OnOpen ()
|
||||||
{
|
{
|
||||||
Sessions.Broadcast (String.Format ("{0} got logged off...", _name));
|
_name = getName ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user