UpdateManager Constructors
Declaring Type: UpdateManager
Namespace: Velopack
Assembly: Velopack
Assembly Version: 0.0.942+a011233
Overloads
Signature | Description |
---|---|
UpdateManager(IUpdateSource, UpdateOptions, ILogger, IVelopackLocator) | Creates a new UpdateManager instance using the specified URL or file path to the releases feed, and the specified channel name. |
UpdateManager(string, UpdateOptions, ILogger, IVelopackLocator) | Creates a new UpdateManager instance using the specified URL or file path to the releases feed, and the specified channel name. |
UpdateManager(IUpdateSource, UpdateOptions, ILogger, IVelopackLocator)
Creates a new UpdateManager instance using the specified URL or file path to the releases feed, and the specified channel name.
public UpdateManager(IUpdateSource source, UpdateOptions options = null, ILogger logger = null, IVelopackLocator locator = null);
Parameters
source
IUpdateSource
The source describing where to search for updates. This can be a custom source, if you are integrating with some private resource, or it could be one of the predefined sources. (eg. SimpleWebSource or GithubSource, etc).
options
UpdateOptions
Override / configure default update behaviors.
logger
ILogger
The logger to use for diagnostic messages. If one was provided to Run(ILogger) but is null here, it will be cached and used again.
locator
IVelopackLocator
This should usually be left null. Providing an IVelopackLocator allows you to mock up certain application paths. For example, if you wanted to test that updates are working in a unit test, you could provide an instance of TestVelopackLocator.
UpdateManager(string, UpdateOptions, ILogger, IVelopackLocator)
Creates a new UpdateManager instance using the specified URL or file path to the releases feed, and the specified channel name.
public UpdateManager(string urlOrPath, UpdateOptions options = null, ILogger logger = null, IVelopackLocator locator = null);
Parameters
urlOrPath
string
A basic URL or file path to use when checking for updates.
options
UpdateOptions
Override / configure default update behaviors.
logger
ILogger
The logger to use for diagnostic messages. If one was provided to Run(ILogger) but is null here, it will be cached and used again.
locator
IVelopackLocator
This should usually be left null. Providing an IVelopackLocator allows you to mock up certain application paths. For example, if you wanted to test that updates are working in a unit test, you could provide an instance of TestVelopackLocator.
Documentation generated by MdDocs