C# Класс NuGetGallery.MessageService

Наследование: IMessageService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
MessageService ( ) : System

Приватные методы

Метод Описание
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

Описание методов

MessageService() защищенный Метод

protected MessageService ( ) : System
Результат System

MessageService() публичный Метод

public MessageService ( IMailSender mailSender, IAppConfiguration config, AuthenticationService authService ) : System
mailSender IMailSender
config IAppConfiguration
authService AuthenticationService
Результат System

ReportAbuse() публичный Метод

public ReportAbuse ( NuGetGallery.ReportPackageRequest request ) : void
request NuGetGallery.ReportPackageRequest
Результат void

ReportMyPackage() публичный Метод

public ReportMyPackage ( ReportPackageRequest request ) : void
request ReportPackageRequest
Результат void

SendContactOwnersMessage() публичный Метод

public SendContactOwnersMessage ( MailAddress fromAddress, PackageRegistration packageRegistration, string message, string emailSettingsUrl, bool copySender ) : void
fromAddress MailAddress
packageRegistration PackageRegistration
message string
emailSettingsUrl string
copySender bool
Результат void

SendContactSupportEmail() публичный Метод

public SendContactSupportEmail ( ContactSupportRequest request ) : void
request ContactSupportRequest
Результат void

SendCredentialAddedNotice() публичный Метод

public SendCredentialAddedNotice ( User user, Credential added ) : void
user User
added Credential
Результат void

SendCredentialRemovedNotice() публичный Метод

public SendCredentialRemovedNotice ( User user, Credential removed ) : void
user User
removed Credential
Результат void

SendEmailChangeConfirmationNotice() публичный Метод

public SendEmailChangeConfirmationNotice ( MailAddress newEmailAddress, string confirmationUrl ) : void
newEmailAddress MailAddress
confirmationUrl string
Результат void

SendEmailChangeNoticeToPreviousEmailAddress() публичный Метод

public SendEmailChangeNoticeToPreviousEmailAddress ( User user, string oldEmailAddress ) : void
user User
oldEmailAddress string
Результат void

SendNewAccountEmail() публичный Метод

public SendNewAccountEmail ( MailAddress toAddress, string confirmationUrl ) : void
toAddress MailAddress
confirmationUrl string
Результат void

SendPackageAddedNotice() публичный Метод

public SendPackageAddedNotice ( Package package, string packageUrl, string packageSupportUrl, string emailSettingsUrl ) : void
package Package
packageUrl string
packageSupportUrl string
emailSettingsUrl string
Результат void

SendPackageOwnerRemovedNotice() публичный Метод

public SendPackageOwnerRemovedNotice ( User fromUser, User toUser, PackageRegistration package ) : void
fromUser User
toUser User
package PackageRegistration
Результат void

SendPackageOwnerRequest() публичный Метод

public SendPackageOwnerRequest ( User fromUser, User toUser, PackageRegistration package, string confirmationUrl, string message ) : void
fromUser User
toUser User
package PackageRegistration
confirmationUrl string
message string
Результат void

SendPasswordResetInstructions() публичный Метод

public SendPasswordResetInstructions ( User user, string resetPasswordUrl, bool forgotPassword ) : void
user User
resetPasswordUrl string
forgotPassword bool
Результат void