Senparc.Ncf.SMS
Positioning
Senparc.Ncf.SMS provides a baseline abstraction for SMS sending in NCF, allowing unified integration of SMS providers.
Key Types
SenparcSmsSetting: SMS account configuration modelISmsPlatform: platform abstractionSmsPlatformFactory: provider factorySmsPlatform_JunMei/SmsPlatform_Fissoft: built-in provider implementations
Configuration Fields
SmsAccountCORPIDSmsAccountNameSmsAccountSubNumberSmsAccountPasswordSmsPlatformType
Provider Instance Example
var sms = SmsPlatformFactory.GetSmsPlateform(
smsAccountCorpid,
smsAccountName,
smsAccountPassword,
smsAccountSubNumber,
SmsPlatformType.JunMei);Recommendations
- Keep template selection and send policy in service/business layer.
- Manage secrets via secure configuration, not hardcoded values.
- Combine with logging and retry policy for failure observability.