[Modify] Add it

This commit is contained in:
sta 2017-09-13 19:30:15 +09:00
parent 2c92cec6af
commit f3fc23478e

View File

@ -364,6 +364,23 @@ namespace WebSocketSharp.Server
return ret;
}
private bool canSet (out string message)
{
message = null;
if (_state == ServerState.Start) {
message = "The service has already started.";
return false;
}
if (_state == ServerState.ShuttingDown) {
message = "The service is shutting down.";
return false;
}
return true;
}
private static string createID ()
{
return Guid.NewGuid ().ToString ("N");