本文整理汇总了C#中ISmsSender类的典型用法代码示例。如果您正苦于以下问题:C# ISmsSender类的具体用法?C# ISmsSender怎么用?C# ISmsSender使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISmsSender类属于命名空间,在下文中一共展示了ISmsSender类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QueuedSmsSendTask
public QueuedSmsSendTask(IQueuedSmsService queuedSmsService,
ISmsSender smsSender, ILogger logger)
{
this._queuedSmsService = queuedSmsService;
this._smsSender = smsSender;
this._logger = logger;
}
示例2: EchoSearchTimerPlugIn
public EchoSearchTimerPlugIn(IExceptionEmailSender emailSender, ISmsSender smsSender, IInternalErrorMailSender defaultEmailSender,
IEchoSearchService echoSearchService)
: base(emailSender, smsSender, null)
{
_defaultEmailSender = defaultEmailSender;
_echoSearchService = echoSearchService;
}
示例3: UserService
public UserService(IUserRepository userRepository, ICountryRepository countryRepository,
IEmailSender emailSender, ISmsSender smsSender)
{
this.userRepository = userRepository;
this.countryRepository = countryRepository;
this.emailSender = emailSender;
this.smsSender = smsSender;
}
示例4: AccountController
public AccountController(UserManager<ApplicationUser> userManager, SignInManager<ApplicationUser> signInManager, IEmailSender emailSender, ISmsSender smsSender, ILogger<AccountController> logger)
{
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
_logger = logger;
}
示例5: ManageController
public ManageController(
UserManager<ApplicationUser> userManager,
SignInManager<ApplicationUser> signInManager,
ISmsSender smsSender)
{
_userManager = userManager;
_signInManager = signInManager;
_smsSender = smsSender;
}
示例6: LoginController
public LoginController(
LoginService loginService,
SignInInteraction signInInteraction, ISmsSender smsSender, ILoggerFactory loggerFactory)
{
_loginService = loginService;
_signInInteraction = signInInteraction;
_smsSender = smsSender;
_logger = loggerFactory.CreateLogger<LoginController>();
}
示例7: DataController
public DataController(
IAppDbRepository appRepository,
IEmailSender emailSender,
ISmsSender smsSender)
{
this._appRepository = appRepository;
this._emailSender = emailSender;
this._smsSender = smsSender;
}
示例8: HomeController
public HomeController(
IWiFiAuthService wifiAuthService,
IEmailSender emailSender,
ISmsSender smsSender)
{
_wifiAuthService = wifiAuthService;
_emailSender = emailSender;
_smsSender = smsSender;
}
示例9: SignUpController
public SignUpController(SignUpService signUpService, LoginService loginService,
ISmsSender smsSender, ILoggerFactory loggerFactory, IHostingEnvironment hostingEnvironment)
{
_signupService = signUpService;
_loginService = loginService;
_smsSender = smsSender;
_logger = loggerFactory.CreateLogger<SignUpController>();
_hostingEnvironment = hostingEnvironment;
}
示例10: FileController
public FileController(ApplicationDbContext context, IOptions<StorageSettings> options, UserManager<ApplicationUser> userManager, ISmsSender smsSender, IOptions<SMSSettings> smsOptions)
{
Manager = userManager;
_context = context;
_smsSender = smsSender;
_storageConnectionString = options.Value.StorageStringConnection;
_sid = smsOptions.Value.Sid;
_authToken = smsOptions.Value.Token;
_number = smsOptions.Value.Number;
}
示例11: ManageController
public ManageController(
UserManager<Author> userManager,
SignInManager<Author> signInManager,
IEmailSender emailSender,
ISmsSender smsSender)
{
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
}
示例12: AccountController
public AccountController(
UserManager<IdentityUser> userManager,
SignInManager<IdentityUser> signInManager,
IEmailSender emailSender,
ISmsSender smsSender)
{
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
}
示例13: ManageController
public ManageController(UserManager<ApplicationUser> userManager,
SignInManager<ApplicationUser> signInManager,
IEmailSender emailSender,
ISmsSender smsSender,
ILoggerFactory loggerFactory) : base(userManager)
{
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
_logger = loggerFactory.CreateLogger<ManageController>();
}
示例14: TestInitialize
public void TestInitialize()
{
mocks = new MockRepository();
smsSender = mocks.CreateMock<ISmsSender>();
user = new User("sally", "1234");
userRepository = mocks.Stub<IUserRepository>();
SetupResult.For(userRepository.GetByUserName("sally"))
.Return(user);
}
示例15: AccountController
public AccountController(
UserManager<ApplicationUser> userManager,
SignInManager<ApplicationUser> signInManager,
IEmailSender emailSender,
ISmsSender smsSender,
ApplicationDbContext applicationDbContext) {
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
_applicationDbContext = applicationDbContext;
}