Class GithubUpdater
Inheritance
System.Object
GithubUpdater
Namespace: MediaBrowser.Common.Updates
Assembly: MediaBrowser.Common.dll
Syntax
public sealed class GithubUpdater
Constructors
GithubUpdater(IHttpClient, IJsonSerializer)
Declaration
public GithubUpdater(IHttpClient httpClient, IJsonSerializer jsonSerializer)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | |
IJsonSerializer | jsonSerializer |
Methods
CheckForUpdateResult(String, String, Version, PackageVersionClass, String, String, String, TimeSpan, Boolean, CancellationToken)
Declaration
public async Task<CheckForUpdateResult> CheckForUpdateResult(string organzation, string repository, Version minVersion, PackageVersionClass updateLevel, string assetFilename, string packageName, string targetFilename, TimeSpan cacheLength, bool debugLoggingOnly, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | organzation | |
System.String | repository | |
System.Version | minVersion | |
PackageVersionClass | updateLevel | |
System.String | assetFilename | |
System.String | packageName | |
System.String | targetFilename | |
System.TimeSpan | cacheLength | |
System.Boolean | debugLoggingOnly | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CheckForUpdateResult> |
GetLatestReleases(String, String, String, TimeSpan, CancellationToken)
Declaration
public async Task<List<GithubUpdater.RootObject>> GetLatestReleases(string organzation, string repository, string assetFilename, TimeSpan cacheLength, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | organzation | |
System.String | repository | |
System.String | assetFilename | |
System.TimeSpan | cacheLength | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<GithubUpdater.RootObject>> |
GetVersion(GithubUpdater.RootObject)
Declaration
public Version GetVersion(GithubUpdater.RootObject obj)
Parameters
Type | Name | Description |
---|---|---|
GithubUpdater.RootObject | obj |
Returns
Type | Description |
---|---|
System.Version |