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); })); }
public static ApiResponse <PublicVolumeResponse> GetPublicVolume(IPublicVolumeProvider provider, PublicVolumesContext context) { return(AsyncContext.Run(() => GetPublicVolumeAsync(provider, context))); }