Skip to content
This repository
tree: 6874fcb4c1
Fetching contributors…

Cannot retrieve contributors at this time

file 177 lines (157 sloc) 7.999 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
// <auto-generated />
// This file was generated by a T4 template.
// Don't change it directly as your change would get overwritten. Instead, make changes
// to the .tt file (i.e. the T4 template) and save it to regenerate this file.

// Make sure the compiler doesn't complain about missing Xml comments
#pragma warning disable 1591
#region T4MVC

using System;
using System.Diagnostics;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using T4MVC;
namespace NuGetGallery {
    public partial class ApiController {
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        protected ApiController(Dummy d) { }

[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        protected RedirectToRouteResult RedirectToAction(ActionResult result) {
            var callInfo = result.GetT4MVCResult();
            return RedirectToRoute(callInfo.RouteValueDictionary);
        }

[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult GetPackage() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.GetPackage);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult VerifyPackageKey() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.VerifyPackageKey);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult CreatePackagePut() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.CreatePackagePut);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult CreatePackagePost() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.CreatePackagePost);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult DeletePackage() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.DeletePackage);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult PublishPackage() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.PublishPackage);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult GetPackageIds() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageIds);
        }
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public System.Web.Mvc.ActionResult GetPackageVersions() {
            return new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageVersions);
        }

[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public ApiController Actions { get { return MVC.Api; } }
[GeneratedCode("T4MVC", "2.0")]
        public readonly string Area = "";
[GeneratedCode("T4MVC", "2.0")]
        public readonly string Name = "Api";

        static readonly ActionNamesClass s_actions = new ActionNamesClass();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public ActionNamesClass ActionNames { get { return s_actions; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public class ActionNamesClass {
            public readonly string GetPackage = "GetPackageApi";
            public readonly string GetNuGetExe = "GetNuGetExeApi";
            public readonly string VerifyPackageKey = "VerifyPackageKeyApi";
            public readonly string CreatePackagePut = "PushPackageApi";
            public readonly string CreatePackagePost = "PushPackageApi";
            public readonly string DeletePackage = "DeletePackageApi";
            public readonly string PublishPackage = "PublishPackageApi";
            public readonly string GetPackageIds = "PackageIDs";
            public readonly string GetPackageVersions = "PackageVersions";
        }


        static readonly ViewNames s_views = new ViewNames();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public ViewNames Views { get { return s_views; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
        public class ViewNames {
        }
    }

[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
    public class T4MVC_ApiController: NuGetGallery.ApiController {
        public T4MVC_ApiController() : base(Dummy.Instance) { }

        public override System.Web.Mvc.ActionResult GetPackage(string id, string version) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetPackage);
            callInfo.RouteValueDictionary.Add("id", id);
            callInfo.RouteValueDictionary.Add("version", version);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult GetNuGetExe() {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetNuGetExe);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult VerifyPackageKey(string apiKey, string id, string version) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.VerifyPackageKey);
            callInfo.RouteValueDictionary.Add("apiKey", apiKey);
            callInfo.RouteValueDictionary.Add("id", id);
            callInfo.RouteValueDictionary.Add("version", version);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult CreatePackagePut(string apiKey) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.CreatePackagePut);
            callInfo.RouteValueDictionary.Add("apiKey", apiKey);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult CreatePackagePost(string apiKey) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.CreatePackagePost);
            callInfo.RouteValueDictionary.Add("apiKey", apiKey);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult DeletePackage(string apiKey, string id, string version) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.DeletePackage);
            callInfo.RouteValueDictionary.Add("apiKey", apiKey);
            callInfo.RouteValueDictionary.Add("id", id);
            callInfo.RouteValueDictionary.Add("version", version);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult PublishPackage(string apiKey, string id, string version) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.PublishPackage);
            callInfo.RouteValueDictionary.Add("apiKey", apiKey);
            callInfo.RouteValueDictionary.Add("id", id);
            callInfo.RouteValueDictionary.Add("version", version);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult GetPackageIds(string partialId, bool? includePrerelease) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageIds);
            callInfo.RouteValueDictionary.Add("partialId", partialId);
            callInfo.RouteValueDictionary.Add("includePrerelease", includePrerelease);
            return callInfo;
        }

        public override System.Web.Mvc.ActionResult GetPackageVersions(string id, bool? includePrerelease) {
            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageVersions);
            callInfo.RouteValueDictionary.Add("id", id);
            callInfo.RouteValueDictionary.Add("includePrerelease", includePrerelease);
            return callInfo;
        }

    }
}

#endregion T4MVC
#pragma warning restore 1591
Something went wrong with that request. Please try again.