enisgurkann / ESMS

ESMS - Multi Sms Provider for .Net Standard & .Net Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt text

ESMS - Multi Sms Provider

Factory pattern structure written with .net5 for sms services

NETGSM,SMSVITRINI,ILETIMERKEZI,MASGSM

SmsProvider Usage

PM> Install-Package ESms
services.AddSingleton<ISmsProviderFactory, SmsProviderFactory>();
PM> Injection
  private readonly ISmsProvider _smsProvider;
  public SmsController(ISmsProviderFactory SmsService)
  {
      _smsProvider = smsProvider.Create(SmsTypes.NETGSM, "Username", "Password", "TITLE");
  }
PM> Using
   public async Task SendSms(string phonenumber, string messagecontent) => await _smsProvider.SendAsync(phonenumber, messagecontent);
   
   public async Task<double> GetCredit()  => await _smsProvider.GetCreditAsync();
    

About

ESMS - Multi Sms Provider for .Net Standard & .Net Framework

License:GNU General Public License v3.0


Languages

Language:C# 100.0%