Stumps.Server.Data.DataAccess.ServerFind C# (CSharp) Method

ServerFind() public method

Finds the persisted T:Stumps.Server.Data.ServerEntity for a specified serverId.
public ServerFind ( string serverId ) : ServerEntity
serverId string The unique identifier for the to find.
return ServerEntity
        public ServerEntity ServerFind(string serverId)
        {
            var path = Path.Combine(_storagePath, serverId + DataAccess.StumpsServerFileExtension);
            var entity = JsonUtility.DeserializeFromFile<ServerEntity>(path);
            return entity;
        }