C# Class NuGetGallery.MessageService

Inheritance: IMessageService
Show file Open project: NuGet/NuGetGallery Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
MessageService ( ) : System

Private Methods

Method 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 method

protected MessageService ( ) : System
return System

MessageService() public method

public MessageService ( IMailSender mailSender, IAppConfiguration config, AuthenticationService authService ) : System
mailSender IMailSender
config IAppConfiguration
authService AuthenticationService
return System

ReportAbuse() public method

public ReportAbuse ( NuGetGallery.ReportPackageRequest request ) : void
request NuGetGallery.ReportPackageRequest
return void

ReportMyPackage() public method

public ReportMyPackage ( ReportPackageRequest request ) : void
request ReportPackageRequest
return void

SendContactOwnersMessage() public method

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

SendContactSupportEmail() public method

public SendContactSupportEmail ( ContactSupportRequest request ) : void
request ContactSupportRequest
return void

SendCredentialAddedNotice() public method

public SendCredentialAddedNotice ( User user, Credential added ) : void
user User
added Credential
return void

SendCredentialRemovedNotice() public method

public SendCredentialRemovedNotice ( User user, Credential removed ) : void
user User
removed Credential
return void

SendEmailChangeConfirmationNotice() public method

public SendEmailChangeConfirmationNotice ( MailAddress newEmailAddress, string confirmationUrl ) : void
newEmailAddress MailAddress
confirmationUrl string
return void

SendEmailChangeNoticeToPreviousEmailAddress() public method

public SendEmailChangeNoticeToPreviousEmailAddress ( User user, string oldEmailAddress ) : void
user User
oldEmailAddress string
return void

SendNewAccountEmail() public method

public SendNewAccountEmail ( MailAddress toAddress, string confirmationUrl ) : void
toAddress MailAddress
confirmationUrl string
return void

SendPackageAddedNotice() public method

public SendPackageAddedNotice ( Package package, string packageUrl, string packageSupportUrl, string emailSettingsUrl ) : void
package Package
packageUrl string
packageSupportUrl string
emailSettingsUrl string
return void

SendPackageOwnerRemovedNotice() public method

public SendPackageOwnerRemovedNotice ( User fromUser, User toUser, PackageRegistration package ) : void
fromUser User
toUser User
package PackageRegistration
return void

SendPackageOwnerRequest() public method

public SendPackageOwnerRequest ( User fromUser, User toUser, PackageRegistration package, string confirmationUrl, string message ) : void
fromUser User
toUser User
package PackageRegistration
confirmationUrl string
message string
return void

SendPasswordResetInstructions() public method

public SendPasswordResetInstructions ( User user, string resetPasswordUrl, bool forgotPassword ) : void
user User
resetPasswordUrl string
forgotPassword bool
return void