示例#1
0
 public async Task RunTaskAsync(string taskName, CancellationToken token = default(CancellationToken))
 {
     await RemoteTaskCompletionSource.Run(task => {
         Client.RunTaskAsync(taskName, task);
     }, token);
 }
示例#2
0
 public async Task <string> PullApplicationPackageAsync(string id, string version)
 {
     return(await RemoteTaskCompletionSource <string> .Run((task, sponsor) => {
         Packages.PullApplicationPackage(id, version, task);
     }));
 }
示例#3
0
 public async Task ReleaseAsync(CancellationToken token)
 {
     await RemoteTaskCompletionSource.Run(task => {
         Client.ReleaseAsync(task);
     }, token);
 }
示例#4
0
 public async Task PushApplicationPackageAsync(string filename)
 {
     await RemoteTaskCompletionSource <object> .Run((task, sponsor) => {
         Packages.PushApplicationPackage(filename, task);
     });
 }
示例#5
0
 public async Task <string> PullProjectPackageAsync(string id, string version)
 {
     return(await RemoteTaskCompletionSource <string> .Run(task => {
         Packages.PullProjectPackage(id, version, task);
     }));
 }
示例#6
0
 public async Task PushApplicationPackageAsync(string filename, CancellationToken token = default(CancellationToken))
 {
     await RemoteTaskCompletionSource.Run(task => {
         Packages.PushApplicationPackage(filename, task);
     }, token);
 }
示例#7
0
 public async Task RunTaskAsync(string taskName, CancellationToken token)
 {
     await RemoteTaskCompletionSource.Run((task, sponsor) => {
         Client.RunTaskAsync(taskName, task);
     }, token);
 }
示例#8
0
 public async Task BeginAsync(CancellationToken token)
 {
     await RemoteTaskCompletionSource.Run((task, sponsor) => {
         Client.Begin(task);
     }, token);
 }