[Modify] Add them
For no roles.
This commit is contained in:
parent
856b34a9c4
commit
724853abb0
@ -38,12 +38,22 @@ namespace WebSocketSharp.Net
|
||||
#region Private Fields
|
||||
|
||||
private string _domain;
|
||||
private static readonly string[] _noRoles;
|
||||
private string _password;
|
||||
private string[] _roles;
|
||||
private string _username;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Constructor
|
||||
|
||||
static NetworkCredential ()
|
||||
{
|
||||
_noRoles = new string[0];
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Constructors
|
||||
|
||||
/// <summary>
|
||||
@ -158,7 +168,7 @@ namespace WebSocketSharp.Net
|
||||
/// </value>
|
||||
public string[] Roles {
|
||||
get {
|
||||
return _roles ?? (_roles = new string[0]);
|
||||
return _roles ?? _noRoles;
|
||||
}
|
||||
|
||||
internal set {
|
||||
|
Loading…
Reference in New Issue
Block a user