Method CreateAddRequest
CreateAddRequest(string, Action<Request<PackageInfo>>, Action<Request<PackageInfo>>)
Queue a job to add a package dependency to the project.
Declaration
public static void CreateAddRequest(string packageName, Action<Request<PackageInfo>> onSuccess, Action<Request<PackageInfo>> onFail)
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageName | The name or ID of the package to add. If only the name is specified, the latest version of the package is installed. |
| Action<Request<PackageInfo>> | onSuccess | Action which is executed if the request succeeded |
| Action<Request<PackageInfo>> | onFail | Action which is executed if the request failed |