tring
The order parameter specifies the method that will be used to order resources in the API response. The default value is relevance.
Acceptable values are:
date – Resources are sorted in reverse chronological order based on the date they were created.
rating – Resources are sorted from highest to lowest rating.
relevance – Resources are sorted based on their relevance to the search query. This is the default value for this parameter.
title – Resources are sorted alphabetically by title.
videoCount – Channels are sorted in descending order of their number of uploaded videos.
viewCount – Resources are sorted from highest to lowest number of views. For live broadcasts, videos are sorted by number of concurrent viewers while the broadcasts are ongoing.
Единственный вопрос, не устал ли уже ajax по сравнению с socket.io?
То есть, в использовани socket.io больше плюсов?
StreamReader sr;
String mFilename;
private static void tryOpenFile(filename) {
try {
sr = new StreamReader(filename);
mFilename = filename;
}
catch
{
Console.WriteLine("Can't open file, trying again");
Thread.Sleep(5000);
tryOpenFile(filename);
}
}
private static void tryCloseFile() {
try {
sr.Close();
}
catch
{
Console.WriteLine("Can't close file, trying again");
Thread.Sleep(5000);
tryCloseFile(filename);
}
}
private static string tryReadFromFile() {
string line = "";
string buf;
while (line.Length < Utils.GetFileSize(mFilename))
{
try {
buf = sr.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine("Can't read file, trying again");
tryOpenFile(mFilename);
return tryReadFromFile();
}
line += buf;
}
return line;
}
public static void Main(string[] args)
{
tryOpenFile("C:\\test.txt");
Console.WriteLine(tryReadFromFile());
tryCloseFile();
}
А ASP.NET Core не включает его?
Тогда установите на сервер этот самый "bridge" на C# и реализуйте взаимодействие.