Обнновлено до .net10
This commit is contained in:
@@ -1,26 +1,25 @@
|
||||
using System.Net;
|
||||
|
||||
namespace YandexMusic.API.Requests.Common
|
||||
namespace YandexMusic.API.Requests.Common;
|
||||
|
||||
public class HttpContext
|
||||
{
|
||||
public class HttpContext
|
||||
public CookieContainer Cookies;
|
||||
|
||||
public HttpContext()
|
||||
{
|
||||
public CookieContainer Cookies;
|
||||
Cookies = new CookieContainer();
|
||||
}
|
||||
|
||||
public HttpContext()
|
||||
{
|
||||
Cookies = new CookieContainer();
|
||||
}
|
||||
public IWebProxy WebProxy { get; set; }
|
||||
|
||||
public IWebProxy WebProxy { get; set; }
|
||||
public long GetTimeInterval()
|
||||
{
|
||||
DateTime dt = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
|
||||
DateTime dt1970 = new(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
|
||||
TimeSpan tsInterval = dt.Subtract(dt1970);
|
||||
long iMilliseconds = Convert.ToInt64(tsInterval.TotalMilliseconds);
|
||||
|
||||
public long GetTimeInterval()
|
||||
{
|
||||
DateTime dt = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
|
||||
DateTime dt1970 = new(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
|
||||
TimeSpan tsInterval = dt.Subtract(dt1970);
|
||||
long iMilliseconds = Convert.ToInt64(tsInterval.TotalMilliseconds);
|
||||
|
||||
return iMilliseconds;
|
||||
}
|
||||
return iMilliseconds;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user