public virtual HttpRequest Create(ViewCleanupRequest request)
        {
            Ensure.That(request, "request").IsNotNull();

            return new HttpRequest(HttpMethod.Post, GenerateRelativeUrl(request))
                .SetRequestTypeHeader(request.GetType())
                .SetJsonContent();
        }
 protected override string GenerateRelativeUrl(ViewCleanupRequest request)
 {
     return string.Format("/{0}/_view_cleanup", new UrlSegment(request.DbName));
 }
 protected virtual string GenerateRelativeUrl(ViewCleanupRequest request)
 {
     return "/_view_cleanup";
 }