Exemplo n.º 1
0
 private static Task <UpdateDeprecationError> InvokeUpdateDeprecation(
     IPackageDeprecationManagementService deprecationManagementService,
     User currentUser,
     string id = null,
     IReadOnlyCollection <string> versions = null,
     bool isLegacy                  = false,
     bool hasCriticalBugs           = false,
     bool isOther                   = false,
     string alternatePackageId      = null,
     string alternatePackageVersion = null,
     string customMessage           = null)
 {
     return(deprecationManagementService.UpdateDeprecation(
                currentUser,
                id,
                versions,
                isLegacy,
                hasCriticalBugs,
                isOther,
                alternatePackageId,
                alternatePackageVersion,
                customMessage));
 }
 public ManageDeprecationJsonApiController(
     IPackageDeprecationManagementService deprecationManagementService)
 {
     _deprecationManagementService = deprecationManagementService ?? throw new ArgumentNullException(nameof(deprecationManagementService));
 }