Exemplo n.º 1
0
 public static Task <HttpResponseMessage> QuerySubImageByContentIdAsync(
     [HashedFile(Name = ContentIdPropertyName)] CheckSumRef <Content> contentId,
     [QueryParameter(Name = XPropertyName)] int x,
     [QueryParameter(Name = YPropertyName)] int y,
     [QueryParameter(Name = WPropertyName)] int w,
     [QueryParameter(Name = HPropertyName)] int h,
     [OptionalQueryParameter] int?width,
     [OptionalQueryParameter] int?height,
     [OptionalQueryParameter] bool?fill,
     HttpRequestMessage request)
 {
     return(QuerySubImageByContentIdAsync(contentId.resourceRef.id,
                                          x, y, w, h,
                                          width, height, fill,
                                          request));
 }
Exemplo n.º 2
0
 public static Task <IHttpResponse> QuerySubImageByContentIdAsync(
     [HashedFile(Name = ContentIdPropertyName)] CheckSumRef <Content> contentId,
     [QueryParameter(Name = XPropertyName)] int x,
     [QueryParameter(Name = YPropertyName)] int y,
     [QueryParameter(Name = WPropertyName)] int w,
     [QueryParameter(Name = HPropertyName)] int h,
     [OptionalQueryParameter] int?width,
     [OptionalQueryParameter] int?height,
     [OptionalQueryParameter] bool?fill,
     ImageResponse imageResponse,
     NotFoundResponse onNotFound,
     UnauthorizedResponse onUnauthorized)
 {
     return(QuerySubImageByContentIdAsync(contentId.resourceRef.id,
                                          x, y, w, h,
                                          width, height, fill,
                                          imageResponse, onNotFound, onUnauthorized));
 }