markus / MarkusAutoUpdate / src / NetSparkle / Interfaces / IAppCastDataDownloader.cs @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (1.13 KB)
1 | d8f5045e | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.IO; |
||
4 | using System.Text; |
||
5 | |||
6 | namespace NetSparkleUpdater.Interfaces |
||
7 | { |
||
8 | /// <summary> |
||
9 | /// Interface used by objects that can download app casts from the internet. |
||
10 | /// Use this interface to provide a custom method of grabbing your app cast |
||
11 | /// from the internet or from a local file. |
||
12 | /// </summary> |
||
13 | public interface IAppCastDataDownloader |
||
14 | { |
||
15 | /// <summary> |
||
16 | /// Used for both downloading app cast and the app cast's .dsa file. |
||
17 | /// Note that you must handle your own exceptions if they occur. Otherwise, SparkleUpdater |
||
18 | /// will act as though the appcast failed to download. |
||
19 | /// </summary> |
||
20 | /// <param name="url"></param> |
||
21 | /// <returns></returns> |
||
22 | string DownloadAndGetAppCastData(string url); |
||
23 | |||
24 | /// <summary> |
||
25 | /// Get the string encoding (e.g. UTF8 or ASCII) of the |
||
26 | /// app cast file so that it can be converted to bytes. |
||
27 | /// (WebRequestAppCastDataDownloader defaults to UTF8.) |
||
28 | /// </summary> |
||
29 | /// <returns></returns> |
||
30 | Encoding GetAppCastEncoding(); |
||
31 | } |
||
32 | } |