コード例 #1
0
 public static Task <ApiResponse <PublicVolumeResponse> > GetPublicVolumeAsync(IPublicVolumeProvider provider, PublicVolumesContext context)
 {
     return(ApiHelpers.WrapExceptionAsync(() => provider.GetPublicVolumeAsync(context), nameof(GetPublicVolume), provider, context, r =>
     {
         var s = new VolumeSource(provider, typeof(IPublicVolumeProvider));
         r.Volume.ForEach(x => x.Source = s);
     }));
 }
コード例 #2
0
ファイル: ApiCoordinator.cs プロジェクト: whiteneutron/prime
 public static ApiResponse <PublicVolumeResponse> GetPublicVolume(IPublicVolumeProvider provider, PublicVolumesContext context)
 {
     return(AsyncContext.Run(() => GetPublicVolumeAsync(provider, context)));
 }