Removed the Ext.IsNoStatus methods
This commit is contained in:
@@ -577,15 +577,15 @@ namespace WebSocketSharp
|
||||
return value.StartsWith (method.ToExtensionString ());
|
||||
}
|
||||
|
||||
internal static bool IsNoStatus (this ushort code)
|
||||
{
|
||||
return code == (ushort) CloseStatusCode.NoStatus;
|
||||
}
|
||||
|
||||
internal static bool IsNoStatus (this CloseStatusCode code)
|
||||
{
|
||||
return code == CloseStatusCode.NoStatus;
|
||||
}
|
||||
// internal static bool IsNoStatus (this ushort code)
|
||||
// {
|
||||
// return code == (ushort) CloseStatusCode.NoStatus;
|
||||
// }
|
||||
//
|
||||
// internal static bool IsNoStatus (this CloseStatusCode code)
|
||||
// {
|
||||
// return code == CloseStatusCode.NoStatus;
|
||||
// }
|
||||
|
||||
internal static bool IsPortNumber (this int value)
|
||||
{
|
||||
|
@@ -768,7 +768,7 @@ namespace WebSocketSharp.Server
|
||||
_state = ServerState.ShuttingDown;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
_services.Stop (new CloseEventArgs (), true, true);
|
||||
}
|
||||
else {
|
||||
@@ -806,7 +806,7 @@ namespace WebSocketSharp.Server
|
||||
_state = ServerState.ShuttingDown;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
_services.Stop (new CloseEventArgs (), true, true);
|
||||
}
|
||||
else {
|
||||
|
@@ -854,7 +854,7 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
|
||||
stopReceiving (5000);
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
_services.Stop (new CloseEventArgs (), true, true);
|
||||
}
|
||||
else {
|
||||
@@ -891,7 +891,7 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
|
||||
stopReceiving (5000);
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
_services.Stop (new CloseEventArgs (), true, true);
|
||||
}
|
||||
else {
|
||||
|
@@ -1777,7 +1777,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
close (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -1806,7 +1806,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
close (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -1842,7 +1842,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
close (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -1878,7 +1878,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
close (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -1934,7 +1934,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
closeAsync (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -1966,7 +1966,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
closeAsync (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -2007,7 +2007,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
||||
closeAsync (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
@@ -2049,7 +2049,7 @@ namespace WebSocketSharp
|
||||
return;
|
||||
}
|
||||
|
||||
if (code.IsNoStatus ()) {
|
||||
if (code == CloseStatusCode.NoStatus) {
|
||||
closeAsync (new CloseEventArgs (), true, true);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user