Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndexController" /> class.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="authenticatedUser">The authenticated user.</param>
 /// <param name="timezoneHydration">The timezone hydration.</param>
 /// <param name="service"></param>
 public IndexController(ISession session, IAuthenticatedUser authenticatedUser, ITimezoneHydration timezoneHydration, ITwillioService service)
 {
     _session           = session;
     _authenticatedUser = authenticatedUser;
     _timezoneHydration = timezoneHydration;
     _service           = service;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="IndexController" /> class.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="authenticatedUser">The authenticated user.</param>
 /// <param name="timezoneHydration">The timezone hydration.</param>
 /// <param name="service"></param>
 public IndexController(ISession session, IAuthenticatedUser authenticatedUser, ITimezoneHydration timezoneHydration, ITwillioService service)
 {
     _session = session;
     _authenticatedUser = authenticatedUser;
     _timezoneHydration = timezoneHydration;
     _service = service;
 }
        public SMSService(IConfiguration configuration, IUnitOfWork unitOfWork, ITwillioService twillioService, HashUtility hashService, ILogger <SMSService> logger)
        {
            _configuration  = configuration;
            _unitOfWork     = unitOfWork;
            _twillioService = twillioService;
            _hashService    = hashService;
            _logger         = logger;

            TwilioClient.Init(_configuration["Twilio:AccountSid"], _configuration["Twilio:AuthToken"]);
        }
 public CallService(ITwillioService twillioService)
 {
     _twillioService = twillioService;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiController" /> class.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="service"></param>
 public ApiController(ISession session, ITwillioService service)
 {
     _session = session;
     _service = service;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiController" /> class.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="service"></param>
 public ApiController(ISession session, ITwillioService service)
 {
     _session = session;
     _service = service;
 }