Modified Chat.cs
This commit is contained in:
parent
bf7717dde8
commit
0a263622f0
@ -13,13 +13,13 @@ namespace Example2
|
|||||||
private string _prefix;
|
private string _prefix;
|
||||||
|
|
||||||
public Chat ()
|
public Chat ()
|
||||||
: this ("anon#")
|
: this (null)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chat (string prefix)
|
public Chat (string prefix)
|
||||||
{
|
{
|
||||||
_prefix = prefix;
|
_prefix = prefix ?? "anon#";
|
||||||
}
|
}
|
||||||
|
|
||||||
private string getName ()
|
private string getName ()
|
||||||
|
@ -13,13 +13,13 @@ namespace Example3
|
|||||||
private string _prefix;
|
private string _prefix;
|
||||||
|
|
||||||
public Chat ()
|
public Chat ()
|
||||||
: this ("anon#")
|
: this (null)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chat (string prefix)
|
public Chat (string prefix)
|
||||||
{
|
{
|
||||||
_prefix = prefix;
|
_prefix = prefix ?? "anon#";
|
||||||
}
|
}
|
||||||
|
|
||||||
private string getName ()
|
private string getName ()
|
||||||
|
@ -294,13 +294,13 @@ public class Chat : WebSocketService
|
|||||||
private string _suffix;
|
private string _suffix;
|
||||||
|
|
||||||
public Chat ()
|
public Chat ()
|
||||||
: this (String.Empty)
|
: this (null)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chat (string suffix)
|
public Chat (string suffix)
|
||||||
{
|
{
|
||||||
_suffix = suffix;
|
_suffix = suffix ?? String.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMessage (MessageEventArgs e)
|
protected override void OnMessage (MessageEventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user