C# Class NuGetGallery.MessageService

Inheritance: IMessageService
Afficher le fichier Open project: NuGet/NuGetGallery Class Usage Examples

Méthodes publiques

Méthode Description
MessageService ( IMailSender mailSender, IAppConfiguration config, AuthenticationService authService ) : System
ReportAbuse ( NuGetGallery.ReportPackageRequest request ) : void
ReportMyPackage ( ReportPackageRequest request ) : void
SendContactOwnersMessage ( MailAddress fromAddress, PackageRegistration packageRegistration, string message, string emailSettingsUrl, bool copySender ) : void
SendContactSupportEmail ( ContactSupportRequest request ) : void
SendCredentialAddedNotice ( User user, Credential added ) : void
SendCredentialRemovedNotice ( User user, Credential removed ) : void
SendEmailChangeConfirmationNotice ( MailAddress newEmailAddress, string confirmationUrl ) : void
SendEmailChangeNoticeToPreviousEmailAddress ( User user, string oldEmailAddress ) : void
SendNewAccountEmail ( MailAddress toAddress, string confirmationUrl ) : void
SendPackageAddedNotice ( Package package, string packageUrl, string packageSupportUrl, string emailSettingsUrl ) : void
SendPackageOwnerRemovedNotice ( User fromUser, User toUser, PackageRegistration package ) : void
SendPackageOwnerRequest ( User fromUser, User toUser, PackageRegistration package, string confirmationUrl, string message ) : void
SendPasswordResetInstructions ( User user, string resetPasswordUrl, bool forgotPassword ) : void

Méthodes protégées

Méthode Description
MessageService ( ) : System

Private Methods

Méthode Description
AddOwnersSubscribedToPackagePushedNotification ( NuGetGallery.PackageRegistration packageRegistration, MailMessage mailMessage ) : void
AddOwnersToMailMessage ( NuGetGallery.PackageRegistration packageRegistration, MailMessage mailMessage ) : void
SendCredentialChangeNotice ( User user, Credential changed, string bodyTemplate, string subjectTemplate ) : void
SendMessage ( MailMessage mailMessage, bool copySender = false ) : void
SendSupportMessage ( User user, string body, string subject ) : void

Method Details

MessageService() protected méthode

protected MessageService ( ) : System
Résultat System

MessageService() public méthode

public MessageService ( IMailSender mailSender, IAppConfiguration config, AuthenticationService authService ) : System
mailSender IMailSender
config IAppConfiguration
authService AuthenticationService
Résultat System

ReportAbuse() public méthode

public ReportAbuse ( NuGetGallery.ReportPackageRequest request ) : void
request NuGetGallery.ReportPackageRequest
Résultat void

ReportMyPackage() public méthode

public ReportMyPackage ( ReportPackageRequest request ) : void
request ReportPackageRequest
Résultat void

SendContactOwnersMessage() public méthode

public SendContactOwnersMessage ( MailAddress fromAddress, PackageRegistration packageRegistration, string message, string emailSettingsUrl, bool copySender ) : void
fromAddress MailAddress
packageRegistration PackageRegistration
message string
emailSettingsUrl string
copySender bool
Résultat void

SendContactSupportEmail() public méthode

public SendContactSupportEmail ( ContactSupportRequest request ) : void
request ContactSupportRequest
Résultat void

SendCredentialAddedNotice() public méthode

public SendCredentialAddedNotice ( User user, Credential added ) : void
user User
added Credential
Résultat void

SendCredentialRemovedNotice() public méthode

public SendCredentialRemovedNotice ( User user, Credential removed ) : void
user User
removed Credential
Résultat void

SendEmailChangeConfirmationNotice() public méthode

public SendEmailChangeConfirmationNotice ( MailAddress newEmailAddress, string confirmationUrl ) : void
newEmailAddress MailAddress
confirmationUrl string
Résultat void

SendEmailChangeNoticeToPreviousEmailAddress() public méthode

public SendEmailChangeNoticeToPreviousEmailAddress ( User user, string oldEmailAddress ) : void
user User
oldEmailAddress string
Résultat void

SendNewAccountEmail() public méthode

public SendNewAccountEmail ( MailAddress toAddress, string confirmationUrl ) : void
toAddress MailAddress
confirmationUrl string
Résultat void

SendPackageAddedNotice() public méthode

public SendPackageAddedNotice ( Package package, string packageUrl, string packageSupportUrl, string emailSettingsUrl ) : void
package Package
packageUrl string
packageSupportUrl string
emailSettingsUrl string
Résultat void

SendPackageOwnerRemovedNotice() public méthode

public SendPackageOwnerRemovedNotice ( User fromUser, User toUser, PackageRegistration package ) : void
fromUser User
toUser User
package PackageRegistration
Résultat void

SendPackageOwnerRequest() public méthode

public SendPackageOwnerRequest ( User fromUser, User toUser, PackageRegistration package, string confirmationUrl, string message ) : void
fromUser User
toUser User
package PackageRegistration
confirmationUrl string
message string
Résultat void

SendPasswordResetInstructions() public méthode

public SendPasswordResetInstructions ( User user, string resetPasswordUrl, bool forgotPassword ) : void
user User
resetPasswordUrl string
forgotPassword bool
Résultat void