Permalink
Browse files

Merge branch 'anurse/moveapiv3'

  • Loading branch information...
2 parents bbfa230 + eb8a4f1 commit 48c9aee53cc7682a58af62ea9bf9816b384ade89 @anurse anurse committed Jan 29, 2014
Showing with 0 additions and 21,216 deletions.
  1. +0 −81 NuGetGallery.v3.sln
  2. +0 −1 nucmd.cmd
  3. +0 −34 src/Services/NuCmd/App.config
  4. +0 −57 src/Services/NuCmd/CommandDefinition.cs
  5. +0 −80 src/Services/NuCmd/CommandDirectory.cs
  6. +0 −104 src/Services/NuCmd/Commands/Command.cs
  7. +0 −32 src/Services/NuCmd/Commands/EnvCommand.cs
  8. +0 −127 src/Services/NuCmd/Commands/HelpCommand.cs
  9. +0 −71 src/Services/NuCmd/Commands/Scheduler/CollectionsCommand.cs
  10. +0 −39 src/Services/NuCmd/Commands/Scheduler/DeleteColCommand.cs
  11. +0 −41 src/Services/NuCmd/Commands/Scheduler/DeleteServiceCommand.cs
  12. +0 −61 src/Services/NuCmd/Commands/Scheduler/JobsCommand.cs
  13. +0 −101 src/Services/NuCmd/Commands/Scheduler/NewColCommand.cs
  14. +0 −185 src/Services/NuCmd/Commands/Scheduler/NewJobCommand.cs
  15. +0 −67 src/Services/NuCmd/Commands/Scheduler/NewServiceCommand.cs
  16. +0 −94 src/Services/NuCmd/Commands/Scheduler/RefreshJobCommand.cs
  17. +0 −30 src/Services/NuCmd/Commands/Scheduler/SchedulerCommandBase.cs
  18. +0 −31 src/Services/NuCmd/Commands/Scheduler/ServicesCommand.cs
  19. +0 −83 src/Services/NuCmd/Commands/Work/GetCommand.cs
  20. +0 −104 src/Services/NuCmd/Commands/Work/InvokeCommand.cs
  21. +0 −59 src/Services/NuCmd/Commands/Work/JobsCommand.cs
  22. +0 −68 src/Services/NuCmd/Commands/Work/LogCommand.cs
  23. +0 −71 src/Services/NuCmd/Commands/Work/PurgeCommand.cs
  24. +0 −115 src/Services/NuCmd/Commands/Work/RunCommand.cs
  25. +0 −102 src/Services/NuCmd/Commands/Work/StatsCommand.cs
  26. +0 −67 src/Services/NuCmd/Commands/Work/WorkServiceCommandBase.cs
  27. +0 −34 src/Services/NuCmd/ConsoleHttpTraceHandler.cs
  28. +0 −140 src/Services/NuCmd/ConsoleTable.cs
  29. +0 −159 src/Services/NuCmd/IConsole.cs
  30. +0 −55 src/Services/NuCmd/IConsoleFormatter.cs
  31. +0 −208 src/Services/NuCmd/NuCmd.csproj
  32. +0 −33 src/Services/NuCmd/NuGetEnvironment.cs
  33. +0 −163 src/Services/NuCmd/Program.cs
  34. +0 −5 src/Services/NuCmd/Properties/AssemblyInfo.cs
  35. +0 −266 src/Services/NuCmd/Strings.resx
  36. +0 −491 src/Services/NuCmd/Strings1.Designer.cs
  37. +0 −178 src/Services/NuCmd/SystemConsole.cs
  38. +0 −23 src/Services/NuCmd/packages.config
  39. +0 −107 src/Services/NuGet.Services.Platform.Client/Client/JsonFormat.cs
  40. +0 −61 src/Services/NuGet.Services.Platform.Client/Client/ServiceResponse.cs
  41. +0 −21 src/Services/NuGet.Services.Platform.Client/Constants.cs
  42. +0 −64 src/Services/NuGet.Services.Platform.Client/CredentialProviderHandler.cs
  43. +0 −16 src/Services/NuGet.Services.Platform.Client/ICredentialProvider.cs
  44. +0 −35 src/Services/NuGet.Services.Platform.Client/Models/AssemblyFullNameConverter.cs
  45. +0 −59 src/Services/NuGet.Services.Platform.Client/Models/AssemblyInformation.cs
  46. +0 −40 src/Services/NuGet.Services.Platform.Client/Models/LogEvent.cs
  47. +0 −90 src/Services/NuGet.Services.Platform.Client/NuGet.Services.Platform.Client.csproj
  48. +0 −30 src/Services/NuGet.Services.Platform.Client/Properties/AssemblyInfo.cs
  49. +0 −91 src/Services/NuGet.Services.Platform.Client/Strings.Designer.cs
  50. +0 −129 src/Services/NuGet.Services.Platform.Client/Strings.resx
  51. +0 −8 src/Services/NuGet.Services.Platform.Client/packages.config
  52. +0 −88 src/Services/NuGet.Services.Platform.Facts/ClockFacts.cs
  53. +0 −217 src/Services/NuGet.Services.Platform.Facts/Configuration/ConfigurationHubFacts.cs
  54. +0 −63 src/Services/NuGet.Services.Platform.Facts/Configuration/SqlConfigurationFacts.cs
  55. +0 −65 src/Services/NuGet.Services.Platform.Facts/Configuration/StorageConfigurationFacts.cs
  56. +0 −175 src/Services/NuGet.Services.Platform.Facts/ContainerBehaviorFacts.cs
  57. +0 −21 src/Services/NuGet.Services.Platform.Facts/Mockery.cs
  58. +0 −154 src/Services/NuGet.Services.Platform.Facts/NuGet.Services.Platform.Facts.csproj
  59. +0 −5 src/Services/NuGet.Services.Platform.Facts/Properties/AssemblyInfo.cs
  60. +0 −52 src/Services/NuGet.Services.Platform.Facts/ServiceModel/DatacenterNameFacts.cs
  61. +0 −140 src/Services/NuGet.Services.Platform.Facts/ServiceModel/NuGetServiceFacts.cs
  62. +0 −57 src/Services/NuGet.Services.Platform.Facts/ServiceModel/ServiceHostNameFacts.cs
  63. +0 −416 src/Services/NuGet.Services.Platform.Facts/Storage/AzureTableEntityFacts.cs
  64. +0 −39 src/Services/NuGet.Services.Platform.Facts/TestInfrastructure/MoqExtensions.cs
  65. +0 −48 src/Services/NuGet.Services.Platform.Facts/TestInfrastructure/TestService.cs
  66. +0 −73 src/Services/NuGet.Services.Platform.Facts/TestInfrastructure/TestServiceHost.cs
  67. +0 −55 src/Services/NuGet.Services.Platform.Facts/app.config
  68. +0 −15 src/Services/NuGet.Services.Platform.Facts/packages.config
  69. +0 −136 src/Services/NuGet.Services.Platform/Azure/AzureServiceHost.cs
  70. +0 −101 src/Services/NuGet.Services.Platform/Azure/NuGetWorkerRole.cs
  71. +0 −103 src/Services/NuGet.Services.Platform/Clock.cs
  72. +0 −19 src/Services/NuGet.Services.Platform/Configuration/ConfigurationErrorsException.cs
  73. +0 −139 src/Services/NuGet.Services.Platform/Configuration/ConfigurationHub.cs
  74. +0 −17 src/Services/NuGet.Services.Platform/Configuration/ConfigurationSectionAttribute.cs
  75. +0 −18 src/Services/NuGet.Services.Platform/Configuration/HttpConfiguration.cs
  76. +0 −12 src/Services/NuGet.Services.Platform/Configuration/ICustomConfigurationSection.cs
  77. +0 −49 src/Services/NuGet.Services.Platform/Configuration/SqlConfiguration.cs
  78. +0 −37 src/Services/NuGet.Services.Platform/Configuration/StorageConfiguration.cs
  79. +0 −14 src/Services/NuGet.Services.Platform/Constants.cs
  80. +0 −68 src/Services/NuGet.Services.Platform/Http/Authentication/AdminKeyAuthenticationHandler.cs
  81. +0 −31 src/Services/NuGet.Services.Platform/Http/Authentication/AdminKeyAuthenticationMiddleware.cs
  82. +0 −18 src/Services/NuGet.Services.Platform/Http/Authentication/AdminKeyAuthenticationOptions.cs
  83. +0 −51 src/Services/NuGet.Services.Platform/Http/Controllers/RootController.cs
  84. +0 −33 src/Services/NuGet.Services.Platform/Http/EnumConstraint.cs
  85. +0 −27 src/Services/NuGet.Services.Platform/Http/Filters/ApiExceptionFilter.cs
  86. +0 −23 src/Services/NuGet.Services.Platform/Http/Filters/LocationHeaderFilter.cs
  87. +0 −184 src/Services/NuGet.Services.Platform/Http/Middleware/NuGetServiceInformationMiddleware.cs
  88. +0 −25 src/Services/NuGet.Services.Platform/Http/Models/ApiDescription.cs
  89. +0 −36 src/Services/NuGet.Services.Platform/Http/Models/HostInformationmodel.cs
  90. +0 −14 src/Services/NuGet.Services.Platform/Http/Models/HostRootModel.cs
  91. +0 −28 src/Services/NuGet.Services.Platform/Http/Models/ServiceInstanceModel.cs
  92. +0 −39 src/Services/NuGet.Services.Platform/Http/NuGetApiController.cs
  93. +0 −171 src/Services/NuGet.Services.Platform/Http/NuGetApiService.cs
  94. +0 −54 src/Services/NuGet.Services.Platform/Http/NuGetHttpService.cs
  95. +0 −16 src/Services/NuGet.Services.Platform/Http/Routes.cs
  96. +0 −53 src/Services/NuGet.Services.Platform/Http/TransferBlobResult.cs
  97. +0 −27 src/Services/NuGet.Services.Platform/Http/WebApiExtensions.cs
  98. +0 −33 src/Services/NuGet.Services.Platform/KnownServers.cs
  99. +0 −241 src/Services/NuGet.Services.Platform/NuGet.Services.Platform.csproj
  100. +0 −35 src/Services/NuGet.Services.Platform/NuGetCoreModule.cs
  101. +0 −90 src/Services/NuGet.Services.Platform/NuGetServiceRuntime.cs
  102. +0 −6 src/Services/NuGet.Services.Platform/Properties/AssemblyInfo.cs
  103. +0 −13 src/Services/NuGet.Services.Platform/Roles.cs
  104. +0 −83 src/Services/NuGet.Services.Platform/ServiceModel/DatacenterName.cs
  105. +0 −58 src/Services/NuGet.Services.Platform/ServiceModel/LocalServiceHost.cs
  106. +0 −112 src/Services/NuGet.Services.Platform/ServiceModel/NuGetService.cs
  107. +0 −28 src/Services/NuGet.Services.Platform/ServiceModel/ServiceAttribute.cs
  108. +0 −57 src/Services/NuGet.Services.Platform/ServiceModel/ServiceDefinition.cs
  109. +0 −353 src/Services/NuGet.Services.Platform/ServiceModel/ServiceHost.cs
  110. +0 −19 src/Services/NuGet.Services.Platform/ServiceModel/ServiceHostDescription.cs
  111. +0 −94 src/Services/NuGet.Services.Platform/ServiceModel/ServiceHostName.cs
  112. +0 −96 src/Services/NuGet.Services.Platform/ServiceModel/ServiceName.cs
  113. +0 −221 src/Services/NuGet.Services.Platform/ServicePlatformEventSource.cs
  114. +0 −64 src/Services/NuGet.Services.Platform/Storage/AssemblyInformationPropertySerializer.cs
  115. +0 −50 src/Services/NuGet.Services.Platform/Storage/AzureQueue.cs
  116. +0 −158 src/Services/NuGet.Services.Platform/Storage/AzureTable.cs
  117. +0 −92 src/Services/NuGet.Services.Platform/Storage/AzureTableEntity.cs
  118. +0 −63 src/Services/NuGet.Services.Platform/Storage/BlobStorageHub.cs
  119. +0 −75 src/Services/NuGet.Services.Platform/Storage/DefaultTablePropertySerializer.cs
  120. +0 −92 src/Services/NuGet.Services.Platform/Storage/PivotedAzureTable.cs
  121. +0 −28 src/Services/NuGet.Services.Platform/Storage/PivotedTableEntity.cs
  122. +0 −19 src/Services/NuGet.Services.Platform/Storage/PropertySerializerAttribute.cs
  123. +0 −23 src/Services/NuGet.Services.Platform/Storage/QueueStorageHub.cs
  124. +0 −26 src/Services/NuGet.Services.Platform/Storage/ReverseChronologicalRowKey.cs
  125. +0 −33 src/Services/NuGet.Services.Platform/Storage/StorageAccountHub.cs
  126. +0 −160 src/Services/NuGet.Services.Platform/Storage/StorageHelpers.cs
  127. +0 −53 src/Services/NuGet.Services.Platform/Storage/StorageHub.cs
  128. +0 −99 src/Services/NuGet.Services.Platform/Storage/TableProperty.cs
  129. +0 −26 src/Services/NuGet.Services.Platform/Storage/TablePropertySerializer.cs
  130. +0 −36 src/Services/NuGet.Services.Platform/Storage/TableStorageHub.cs
  131. +0 −38 src/Services/NuGet.Services.Platform/Storage/TableStorageKey.cs
  132. +0 −216 src/Services/NuGet.Services.Platform/Strings.Designer.cs
  133. +0 −171 src/Services/NuGet.Services.Platform/Strings.resx
  134. +0 −40 src/Services/NuGet.Services.Platform/TypeExtensions.cs
  135. +0 −35 src/Services/NuGet.Services.Platform/app.config
  136. +0 −28 src/Services/NuGet.Services.Platform/packages.config
  137. +0 −2 src/Services/README.md
  138. +0 −93 src/Services/Work/NuGet.Services.Work.Client/Client/InvocationsClient.cs
  139. +0 −31 src/Services/Work/NuGet.Services.Work.Client/Client/JobsClient.cs
  140. +0 −76 src/Services/Work/NuGet.Services.Work.Client/Client/WorkClient.cs
  141. +0 −26 src/Services/Work/NuGet.Services.Work.Client/Client/WorkersClient.cs
  142. +0 −42 src/Services/Work/NuGet.Services.Work.Client/Extensions.cs
  143. +0 −49 src/Services/Work/NuGet.Services.Work.Client/InvocationPayloadSerializer.cs
  144. +0 −41 src/Services/Work/NuGet.Services.Work.Client/Models/Invocation.cs
  145. +0 −19 src/Services/Work/NuGet.Services.Work.Client/Models/InvocationListCriteria.cs
  146. +0 −55 src/Services/Work/NuGet.Services.Work.Client/Models/InvocationRequest.cs
  147. +0 −86 src/Services/Work/NuGet.Services.Work.Client/Models/InvocationStatus.cs
  148. +0 −39 src/Services/Work/NuGet.Services.Work.Client/Models/InvocationsStatistics.cs
  149. +0 −19 src/Services/Work/NuGet.Services.Work.Client/Models/Job.cs
  150. +0 −95 src/Services/Work/NuGet.Services.Work.Client/NuGet.Services.Work.Client.csproj
  151. +0 −30 src/Services/Work/NuGet.Services.Work.Client/Properties/AssemblyInfo.cs
  152. +0 −8 src/Services/Work/NuGet.Services.Work.Client/packages.config
  153. +0 −68 src/Services/Work/NuGet.Services.Work.Cloud/NuGet.Services.Work.Cloud.ccproj
  154. +0 −33 src/Services/Work/NuGet.Services.Work.Cloud/NuGet.Services.WorkContent/diagnostics.wadcfg
  155. +0 −45 src/Services/Work/NuGet.Services.Work.Cloud/ServiceConfiguration.Local.cscfg
  156. +0 −64 src/Services/Work/NuGet.Services.Work.Cloud/ServiceDefinition.csdef
  157. +0 −91 src/Services/Work/NuGet.Services.Work.Database/NuGet.Services.Work.Database.sqlproj
  158. +0 −5 src/Services/Work/NuGet.Services.Work.Database/private.schema.sql
  159. +0 −29 src/Services/Work/NuGet.Services.Work.Database/private.table.InvocationsStore.sql
  160. +0 −20 src/Services/Work/NuGet.Services.Work.Database/work.JobStatistics.sql
  161. +0 −3 src/Services/Work/NuGet.Services.Work.Database/work.schema.sql
  162. +0 −51 src/Services/Work/NuGet.Services.Work.Database/work.sproc.CompleteInvocation.sql
  163. +0 −56 src/Services/Work/NuGet.Services.Work.Database/work.sproc.DequeueInvocation.sql
  164. +0 −59 src/Services/Work/NuGet.Services.Work.Database/work.sproc.EnqueueInvocation.sql
  165. +0 −49 src/Services/Work/NuGet.Services.Work.Database/work.sproc.ExtendInvocation.sql
  166. +0 −6 src/Services/Work/NuGet.Services.Work.Database/work.sproc.GetInvocationHistory.sql
  167. +0 −6 src/Services/Work/NuGet.Services.Work.Database/work.sproc.PurgeInvocations.sql
  168. +0 −50 src/Services/Work/NuGet.Services.Work.Database/work.sproc.SetInvocationStatus.sql
  169. +0 −51 src/Services/Work/NuGet.Services.Work.Database/work.sproc.SuspendInvocation.sql
  170. +0 −3 src/Services/Work/NuGet.Services.Work.Database/work.type.IdList.sql
  171. +0 −10 src/Services/Work/NuGet.Services.Work.Database/work.view.ActiveInvocations.sql
  172. +0 −20 src/Services/Work/NuGet.Services.Work.Database/work.view.InstanceStatistics.sql
  173. +0 −20 src/Services/Work/NuGet.Services.Work.Database/work.view.InvocationStatistics.sql
  174. +0 −8 src/Services/Work/NuGet.Services.Work.Database/work.view.Invocations.sql
  175. +0 −9 src/Services/Work/NuGet.Services.Work.Database/work.view.InvocationsByJobInstance.sql
  176. +0 −31 src/Services/Work/NuGet.Services.Work.Facts/Common/AssertEx.cs
  177. +0 −73 src/Services/Work/NuGet.Services.Work.Facts/Infrastructure/JobDescriptionFacts.cs
  178. +0 −206 src/Services/Work/NuGet.Services.Work.Facts/Infrastructure/JobDispatcherFacts.cs
  179. +0 −152 src/Services/Work/NuGet.Services.Work.Facts/Infrastructure/JobFacts.cs
  180. +0 −447 src/Services/Work/NuGet.Services.Work.Facts/Infrastructure/JobRunnerFacts.cs
  181. +0 −43 src/Services/Work/NuGet.Services.Work.Facts/InvocationPayloadSerializerFacts.cs
  182. +0 −38 src/Services/Work/NuGet.Services.Work.Facts/Models/DatabaseBackupMetadataFacts.cs
  183. +0 −147 src/Services/Work/NuGet.Services.Work.Facts/NuGet.Services.Work.Facts.csproj
  184. +0 −5 src/Services/Work/NuGet.Services.Work.Facts/Properties/AssemblyInfo.cs
  185. +0 −38 src/Services/Work/NuGet.Services.Work.Facts/TestHelpers.cs
  186. +0 −55 src/Services/Work/NuGet.Services.Work.Facts/app.config
  187. +0 −15 src/Services/Work/NuGet.Services.Work.Facts/packages.config
  188. +0 −127 src/Services/Work/NuGet.Services.Work/Api/Controllers/InvocationsController.cs
  189. +0 −49 src/Services/Work/NuGet.Services.Work/Api/Controllers/JobsController.cs
  190. +0 −57 src/Services/Work/NuGet.Services.Work/Api/Controllers/RootController.cs
  191. +0 −31 src/Services/Work/NuGet.Services.Work/Api/Controllers/WorkersController.cs
  192. +0 −95 src/Services/Work/NuGet.Services.Work/Api/ModelConverters.cs
  193. +0 −20 src/Services/Work/NuGet.Services.Work/Api/Models/WorkServiceModel.cs
  194. +0 −25 src/Services/Work/NuGet.Services.Work/Api/Routes.cs
  195. +0 −19 src/Services/Work/NuGet.Services.Work/Configuration/LicenseReportConfiguration.cs
  196. +0 −20 src/Services/Work/NuGet.Services.Work/Configuration/WorkConfiguration.cs
  197. +0 −16 src/Services/Work/NuGet.Services.Work/Constants.cs
  198. +0 −21 src/Services/Work/NuGet.Services.Work/Helpers/DapperExtensions.cs
  199. +0 −21 src/Services/Work/NuGet.Services.Work/Helpers/DateTimeOffsetExtensions.cs
  200. +0 −44 src/Services/Work/NuGet.Services.Work/Helpers/EventSourceInstanceManager.cs
  201. +0 −46 src/Services/Work/NuGet.Services.Work/Helpers/PackageHelpers.cs
  202. +0 −27 src/Services/Work/NuGet.Services.Work/Helpers/ResourceHelpers.cs
  203. +0 −45 src/Services/Work/NuGet.Services.Work/Helpers/SqlConnectionStringBuilderExtensions.cs
  204. +0 −20 src/Services/Work/NuGet.Services.Work/Infrastructure/InvalidJobRequestException.cs
  205. +0 −58 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationContext.cs
  206. +0 −12 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationEntry.cs
  207. +0 −558 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationQueue.cs
  208. +0 −91 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationResult.cs
  209. +0 −112 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationState.cs
  210. +0 −31 src/Services/Work/NuGet.Services.Work/Infrastructure/InvocationStatisticsRecord.cs
  211. +0 −65 src/Services/Work/NuGet.Services.Work/Infrastructure/JobAttribute.cs
  212. +0 −19 src/Services/Work/NuGet.Services.Work/Infrastructure/JobContinuation.cs
  213. +0 −59 src/Services/Work/NuGet.Services.Work/Infrastructure/JobDescription.cs
  214. +0 −91 src/Services/Work/NuGet.Services.Work/Infrastructure/JobDispatcher.cs
  215. +0 −132 src/Services/Work/NuGet.Services.Work/Infrastructure/JobHandler.cs
  216. +0 −198 src/Services/Work/NuGet.Services.Work/Infrastructure/JobHandlerBase.cs
  217. +0 −249 src/Services/Work/NuGet.Services.Work/Infrastructure/JobRunner.cs
  218. +0 −34 src/Services/Work/NuGet.Services.Work/Infrastructure/UnknownJobException.cs
  219. +0 −54 src/Services/Work/NuGet.Services.Work/JobComponentsModule.cs
  220. +0 −150 src/Services/Work/NuGet.Services.Work/Jobs/AggregateStatisticsJob.cs
  221. +0 −350 src/Services/Work/NuGet.Services.Work/Jobs/BackupPackageBlobsJob.cs
  222. +0 −81 src/Services/Work/NuGet.Services.Work/Jobs/Bases/DatabaseJobHandlerBase.cs
  223. +0 −158 src/Services/Work/NuGet.Services.Work/Jobs/CleanOnlineDatabaseBackupsJob.cs
  224. +0 −276 src/Services/Work/NuGet.Services.Work/Jobs/CreateOnlineDatabaseBackupJob.cs
  225. +0 −676 src/Services/Work/NuGet.Services.Work/Jobs/CreateWarehouseReportsJob.cs
  226. +0 −564 src/Services/Work/NuGet.Services.Work/Jobs/HandlePackageEditsJob.cs
  227. +0 −84 src/Services/Work/NuGet.Services.Work/Jobs/Models/Database.cs
  228. +0 −61 src/Services/Work/NuGet.Services.Work/Jobs/Models/PackageEdit.cs
  229. +0 −15 src/Services/Work/NuGet.Services.Work/Jobs/Models/PackageRef.cs
  230. +0 −88 src/Services/Work/NuGet.Services.Work/Jobs/PurgeCompletedInvocationsJob.cs
  231. +0 −151 src/Services/Work/NuGet.Services.Work/Jobs/PurgePackageStatisticsJob.cs
  232. +0 −320 src/Services/Work/NuGet.Services.Work/Jobs/ReplicatePackageStatisticsJob.cs
  233. +0 −16 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_Last6Months.sql
  234. +0 −10 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_ListInactive.sql
  235. +0 −12 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_NuGetClientVersion.sql
  236. +0 −10 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_RecentPopularity.sql
  237. +0 −9 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_RecentPopularityByPackage.sql
  238. +0 −21 src/Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_RecentPopularityDetail.sql
  239. +0 −31 ...Services/Work/NuGet.Services.Work/Jobs/Scripts/DownloadReport_RecentPopularityDetailByPackage.sql
  240. +0 −54 src/Services/Work/NuGet.Services.Work/Jobs/TestAsyncJob.cs
  241. +0 −40 src/Services/Work/NuGet.Services.Work/Jobs/TestHeartBeatJob.cs
  242. +0 −42 src/Services/Work/NuGet.Services.Work/Jobs/TestLongRunningJob.cs
  243. +0 −35 src/Services/Work/NuGet.Services.Work/Jobs/TestPingJob.cs
  244. +0 −513 src/Services/Work/NuGet.Services.Work/Jobs/UpdateLicenseReportsJob.cs
  245. +0 −44 src/Services/Work/NuGet.Services.Work/LocalWorkService.cs
  246. +0 −166 src/Services/Work/NuGet.Services.Work/Monitoring/InvocationEventSource.cs
  247. +0 −122 src/Services/Work/NuGet.Services.Work/Monitoring/InvocationLogCapture.cs
  248. +0 −116 src/Services/Work/NuGet.Services.Work/Monitoring/WorkServiceEventSource.cs
  249. +0 −259 src/Services/Work/NuGet.Services.Work/NuGet.Services.Work.csproj
  250. +0 −6 src/Services/Work/NuGet.Services.Work/Properties/AssemblyInfo.cs
  251. +0 −207 src/Services/Work/NuGet.Services.Work/Strings.Designer.cs
  252. +0 −168 src/Services/Work/NuGet.Services.Work/Strings.resx
  253. +0 −237 src/Services/Work/NuGet.Services.Work/WorkService.cs
  254. +0 −33 src/Services/Work/NuGet.Services.Work/WorkServiceStatus.cs
  255. +0 −25 src/Services/Work/NuGet.Services.Work/WorkWorkerRole.cs
  256. +0 −41 src/Services/Work/NuGet.Services.Work/Worker.cs
  257. +0 −33 src/Services/Work/NuGet.Services.Work/app.config
  258. +0 −28 src/Services/Work/NuGet.Services.Work/packages.config
View
@@ -1,81 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Work", "Work", "{69E0B03C-B1FE-47E2-BFFD-5B9474BED386}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Platform", "src\Services\NuGet.Services.Platform\NuGet.Services.Platform.csproj", "{EF86883E-A1B4-4052-9222-51A01C6C41CD}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Platform.Facts", "src\Services\NuGet.Services.Platform.Facts\NuGet.Services.Platform.Facts.csproj", "{304B7FDA-3111-4670-9E77-4E5F20C89A8C}"
-EndProject
-Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "NuGet.Services.Work.Database", "src\Services\Work\NuGet.Services.Work.Database\NuGet.Services.Work.Database.sqlproj", "{A8B0845E-CF36-4ADB-B641-CA8542202878}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Work", "src\Services\Work\NuGet.Services.Work\NuGet.Services.Work.csproj", "{7F92C174-5310-4090-A6A3-3CC7C67C19D6}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Work.Facts", "src\Services\Work\NuGet.Services.Work.Facts\NuGet.Services.Work.Facts.csproj", "{4405C24C-7F57-4826-831F-D5D7E139F02E}"
-EndProject
-Project("{CC5FD16D-436D-48AD-A40C-5A424C6E3E79}") = "NuGet.Services.Work.Cloud", "src\Services\Work\NuGet.Services.Work.Cloud\NuGet.Services.Work.Cloud.ccproj", "{1D0164B6-92D4-455A-AC68-C30B61733748}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Work.Client", "src\Services\Work\NuGet.Services.Work.Client\NuGet.Services.Work.Client.csproj", "{19324B97-1C22-49E2-8C1A-E4EAB682A974}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuGet.Services.Platform.Client", "src\Services\NuGet.Services.Platform.Client\NuGet.Services.Platform.Client.csproj", "{3BE823F7-53AA-4263-A953-06BF643F0E43}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuCmd", "src\Services\NuCmd\NuCmd.csproj", "{9752C50D-2DDE-4DC3-8A06-A01EC68FEDC0}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {EF86883E-A1B4-4052-9222-51A01C6C41CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EF86883E-A1B4-4052-9222-51A01C6C41CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EF86883E-A1B4-4052-9222-51A01C6C41CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EF86883E-A1B4-4052-9222-51A01C6C41CD}.Release|Any CPU.Build.0 = Release|Any CPU
- {304B7FDA-3111-4670-9E77-4E5F20C89A8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {304B7FDA-3111-4670-9E77-4E5F20C89A8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {304B7FDA-3111-4670-9E77-4E5F20C89A8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {304B7FDA-3111-4670-9E77-4E5F20C89A8C}.Release|Any CPU.Build.0 = Release|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Release|Any CPU.Build.0 = Release|Any CPU
- {A8B0845E-CF36-4ADB-B641-CA8542202878}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {7F92C174-5310-4090-A6A3-3CC7C67C19D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7F92C174-5310-4090-A6A3-3CC7C67C19D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7F92C174-5310-4090-A6A3-3CC7C67C19D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7F92C174-5310-4090-A6A3-3CC7C67C19D6}.Release|Any CPU.Build.0 = Release|Any CPU
- {4405C24C-7F57-4826-831F-D5D7E139F02E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4405C24C-7F57-4826-831F-D5D7E139F02E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4405C24C-7F57-4826-831F-D5D7E139F02E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4405C24C-7F57-4826-831F-D5D7E139F02E}.Release|Any CPU.Build.0 = Release|Any CPU
- {1D0164B6-92D4-455A-AC68-C30B61733748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1D0164B6-92D4-455A-AC68-C30B61733748}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1D0164B6-92D4-455A-AC68-C30B61733748}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1D0164B6-92D4-455A-AC68-C30B61733748}.Release|Any CPU.Build.0 = Release|Any CPU
- {19324B97-1C22-49E2-8C1A-E4EAB682A974}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {19324B97-1C22-49E2-8C1A-E4EAB682A974}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {19324B97-1C22-49E2-8C1A-E4EAB682A974}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {19324B97-1C22-49E2-8C1A-E4EAB682A974}.Release|Any CPU.Build.0 = Release|Any CPU
- {3BE823F7-53AA-4263-A953-06BF643F0E43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3BE823F7-53AA-4263-A953-06BF643F0E43}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3BE823F7-53AA-4263-A953-06BF643F0E43}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3BE823F7-53AA-4263-A953-06BF643F0E43}.Release|Any CPU.Build.0 = Release|Any CPU
- {9752C50D-2DDE-4DC3-8A06-A01EC68FEDC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9752C50D-2DDE-4DC3-8A06-A01EC68FEDC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9752C50D-2DDE-4DC3-8A06-A01EC68FEDC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9752C50D-2DDE-4DC3-8A06-A01EC68FEDC0}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {A8B0845E-CF36-4ADB-B641-CA8542202878} = {69E0B03C-B1FE-47E2-BFFD-5B9474BED386}
- {7F92C174-5310-4090-A6A3-3CC7C67C19D6} = {69E0B03C-B1FE-47E2-BFFD-5B9474BED386}
- {4405C24C-7F57-4826-831F-D5D7E139F02E} = {69E0B03C-B1FE-47E2-BFFD-5B9474BED386}
- {1D0164B6-92D4-455A-AC68-C30B61733748} = {69E0B03C-B1FE-47E2-BFFD-5B9474BED386}
- {19324B97-1C22-49E2-8C1A-E4EAB682A974} = {69E0B03C-B1FE-47E2-BFFD-5B9474BED386}
- EndGlobalSection
-EndGlobal
View
@@ -1 +0,0 @@
-@%~dp0src\Services\NuCmd\bin\Debug\NuCmd.exe %*
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
- </startup>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.2.18.0" newVersion="4.2.18.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
-</configuration>
@@ -1,57 +0,0 @@
-using System;
-using System.Reflection;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.ComponentModel;
-using System.Text.RegularExpressions;
-
-namespace NuCmd
-{
- public class CommandDefinition
- {
- private static readonly Regex NameParser = new Regex(@"^NuCmd\.Commands\.((?<group>[^\.]*)\.)?(?<command>[^\.]*)Command$", RegexOptions.IgnoreCase);
-
- public string Group { get; private set; }
- public string Name { get; private set; }
- public string Description { get; private set; }
- public Type Type { get; private set; }
-
- public CommandDefinition(string group, string name, string description, Type type)
- {
- Group = group;
- Name = name;
- Description = description;
- Type = type;
- }
-
- public static CommandDefinition FromType(Type type)
- {
- var descAttr = type.GetCustomAttribute<DescriptionAttribute>();
- var match = NameParser.Match(type.FullName);
-
- string name;
- string group;
- if (!match.Success)
- {
- name = type.Name;
- group = null;
- }
- else
- {
- name = match.Groups["command"].Value.ToLowerInvariant();
- if (match.Groups["group"].Success)
- {
- group = match.Groups["group"].Value.ToLowerInvariant();
- }
- else
- {
- group = null;
- }
- }
-
- return new CommandDefinition(group, name, descAttr == null ? null : descAttr.Description, type);
- }
- }
-}
@@ -1,80 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using NuCmd.Commands;
-
-namespace NuCmd
-{
- public class CommandDirectory
- {
- private static readonly IReadOnlyDictionary<string, CommandDefinition> EmptyCommands =
- new ReadOnlyDictionary<string, CommandDefinition>(new Dictionary<string, CommandDefinition>());
- private static readonly IReadOnlyDictionary<string, IReadOnlyDictionary<string, CommandDefinition>> EmptyGroups =
- new ReadOnlyDictionary<string, IReadOnlyDictionary<string, CommandDefinition>>(
- new Dictionary<string, IReadOnlyDictionary<string, CommandDefinition>>());
-
- private List<CommandDefinition> _commands = new List<CommandDefinition>();
- private IReadOnlyDictionary<string, IReadOnlyDictionary<string, CommandDefinition>> _groups = EmptyGroups;
- private IReadOnlyDictionary<string, CommandDefinition> _rootCommands = EmptyCommands;
-
-
- public IReadOnlyDictionary<string, CommandDefinition> RootCommands { get { return _rootCommands; } }
- public IReadOnlyList<CommandDefinition> Commands { get { return _commands.AsReadOnly(); } }
- public IReadOnlyDictionary<string, IReadOnlyDictionary<string, CommandDefinition>> Groups { get { return _groups; } }
-
- public CommandDirectory()
- {
- }
-
- public void LoadCommands(params Assembly[] assemblies)
- {
- _commands = assemblies
- .SelectMany(a =>
- a.GetExportedTypes()
- .Where(t => !t.IsAbstract && t.Namespace.StartsWith("NuCmd.Commands") && typeof(ICommand).IsAssignableFrom(t))
- .Select(CommandDefinition.FromType))
- .ToList();
- _groups = new ReadOnlyDictionary<string, IReadOnlyDictionary<string, CommandDefinition>>(
- _commands
- .GroupBy(c => c.Group ?? String.Empty)
- .Where(c => !String.IsNullOrEmpty(c.Key))
- .ToDictionary(
- g => g.Key,
- g => (IReadOnlyDictionary<string, CommandDefinition>)new ReadOnlyDictionary<string, CommandDefinition>(
- g.ToDictionary(c => c.Name, StringComparer.OrdinalIgnoreCase)),
- StringComparer.OrdinalIgnoreCase));
- _rootCommands = _commands
- .Where(c => String.IsNullOrEmpty(c.Group))
- .ToDictionary(c => c.Name, StringComparer.OrdinalIgnoreCase);
- }
-
- public IReadOnlyDictionary<string, CommandDefinition> GetGroup(string group)
- {
- if (String.IsNullOrEmpty(group))
- {
- return RootCommands;
- }
-
- IReadOnlyDictionary<string, CommandDefinition> commands;
- if (!Groups.TryGetValue(group, out commands))
- {
- return EmptyCommands;
- }
- return commands;
- }
-
- public CommandDefinition GetCommand(string group, string name)
- {
- CommandDefinition command;
- if (!GetGroup(group).TryGetValue(name, out command))
- {
- return null;
- }
- return command;
- }
- }
-}
@@ -1,104 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Cryptography.X509Certificates;
-using System.Text;
-using System.Threading.Tasks;
-using NuGet.Services.Client;
-using PowerArgs;
-
-namespace NuCmd.Commands
-{
- public interface ICommand {
- Task Execute(IConsole console, CommandDefinition definition, CommandDirectory directory);
- }
-
- public abstract class Command : ICommand
- {
- [ArgShortcut("!")]
- [ArgShortcut("n")]
- [ArgDescription("Report what the command would do but do not actually perform any changes")]
- public bool WhatIf { get; set; }
-
- protected IConsole Console { get; private set; }
- protected CommandDefinition Definition { get; private set; }
- protected CommandDirectory Directory { get; private set; }
- protected NuGetEnvironment TargetEnvironment { get; set; }
-
- public virtual async Task Execute(IConsole console, CommandDefinition definition, CommandDirectory directory)
- {
- if (await LoadContext(console, definition, directory))
- {
- await OnExecute();
- }
- }
-
- protected virtual Task<bool> LoadContext(IConsole console, CommandDefinition definition, CommandDirectory directory)
- {
- Console = console;
- Directory = directory;
- Definition = definition;
-
- // Load the environment
- TargetEnvironment = LoadEnvironment();
-
- return Task.FromResult(true);
- }
-
- protected abstract Task OnExecute();
-
- protected virtual async Task<bool> ReportHttpStatus<T>(ServiceResponse<T> response)
- {
- if (response.IsSuccessStatusCode)
- {
- return true;
- }
- await Console.WriteErrorLine(
- Strings.Commands_HttpError,
- (int)response.StatusCode,
- response.ReasonPhrase,
- await response.HttpResponse.Content.ReadAsStringAsync());
- return false;
- }
-
- protected virtual NuGetEnvironment LoadEnvironment()
- {
- string name = Environment.GetEnvironmentVariable("NUCMD_ENVIRONMENT");
- if(String.IsNullOrEmpty(name))
- {
- return null;
- }
- var env = new NuGetEnvironment()
- {
- Name = name,
- SubscriptionId = Environment.GetEnvironmentVariable("NUCMD_SUBSCRIPTION_ID"),
- SubscriptionName = Environment.GetEnvironmentVariable("NUCMD_SUBSCRIPTION_NAME")
- };
-
- // Load the cert
- string thumbprint = Environment.GetEnvironmentVariable("NUCMD_SUBSCRIPTION_THUMBPRINT");
- if(!String.IsNullOrEmpty(thumbprint)) {
- X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
- store.Open(OpenFlags.ReadOnly);
- env.SubscriptionCertificate = store.Certificates.Find(
- X509FindType.FindByThumbprint,
- thumbprint,
- validOnly: false)
- .Cast<X509Certificate2>()
- .FirstOrDefault();
- }
-
- // Load the service map
- var servicesString = Environment.GetEnvironmentVariable("NUCMD_SERVICE_MAP");
- if(!String.IsNullOrEmpty(servicesString)) {
- foreach(var service in servicesString.Split(';')) {
- var vals = service.Split('|');
- if(vals.Length == 2) {
- env.ServiceMap.Add(vals[0], new Uri(vals[1], UriKind.Absolute));
- }
- }
- }
- return env;
- }
- }
-}
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace NuCmd.Commands
-{
- [Description("Displays information about the current environment")]
- public class EnvCommand : Command
- {
- protected override async Task OnExecute()
- {
- if (TargetEnvironment == null)
- {
- await Console.WriteInfoLine("No current environment");
- }
- else
- {
- await Console.WriteInfoLine("Environment: {0}", TargetEnvironment.Name);
- await Console.WriteInfoLine("Azure Subscription: {0} ({1})", TargetEnvironment.SubscriptionName, TargetEnvironment.SubscriptionId);
- await Console.WriteInfoLine("Azure Certificate: {0}", TargetEnvironment.SubscriptionCertificate.Thumbprint);
- await Console.WriteInfoLine("Service URIs:");
- foreach (var pair in TargetEnvironment.ServiceMap)
- {
- await Console.WriteInfoLine(" {0}: {1}", pair.Key, pair.Value.AbsoluteUri);
- }
- }
- }
- }
-}
Oops, something went wrong.

0 comments on commit 48c9aee

Please sign in to comment.