Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendNotification"/> class.
 /// </summary>
 public SendNotification()
 {
     var container = new Container(new DefaultRegistry());
     this.loggerservice = container.GetInstance<ILoggerService>();
     this.youfferMessageService = container.GetInstance<IYoufferMessageService>();
     this.userService = container.GetInstance<IUserService>();
     this.pushMessageService = container.GetInstance<IPushMessageService>();
     this.commonService = container.GetInstance<ICommonService>();
     this.crmManagerService = container.GetInstance<ICRMManagerService>();
     this.authRepository = container.GetInstance<IAuthRepository>();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Startup"/> class.
 /// </summary>
 public Startup()
 {
     this.authRepository = StructuremapMvc.StructureMapDependencyScope.Container.GetInstance<IAuthRepository>();
     this.crmManagerService = StructuremapMvc.StructureMapDependencyScope.Container.GetInstance<ICRMManagerService>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleAuthorizationServerProvider"/> class.
 /// </summary>
 /// <param name="authRepository">The authentication repository.</param>
 /// <param name="crmManagerService">The CRMManager service.</param>
 public SimpleAuthorizationServerProvider(IAuthRepository authRepository, ICRMManagerService crmManagerService)
 {
     this.authRepository = authRepository;
     this.crmManagerService = crmManagerService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyController"/> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="crmManagerService">The CRM manager service.</param>
 /// <param name="userService">The user service.</param>
 /// <param name="noteService">The note service.</param>
 /// <param name="commonService">The common service.</param>
 /// <param name="youfferMessageService">The youffer message service.</param>
 /// <param name="oppService">The opp service.</param>
 /// <param name="youfferContactService">The youffer contact service.</param>
 /// <param name="youfferLeadService">The youffer lead service.</param>
 /// <param name="youfferFeedbackService">The youffer feedback service.</param>
 /// <param name="mapperFactory">The Mapper Factory</param>
 /// <param name="youfferNoteService">The youffer note service.</param>
 /// <param name="youfferInterestService"> The youffer interest service </param>
 /// <param name="pushMessageService">The push message service</param>
 public CompanyController(ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, INoteService noteService, ICommonService commonService, IYoufferMessageService youfferMessageService, IOpportunityService oppService, IYoufferContactService youfferContactService, IYoufferLeadService youfferLeadService, IYoufferFeedbackService youfferFeedbackService, IMapperFactory mapperFactory, IYoufferNoteService youfferNoteService, IYoufferInterestService youfferInterestService, IPushMessageService pushMessageService)
     : base(loggerService)
 {
     this.mapperFactory = mapperFactory;
     this.crmManagerService = crmManagerService;
     this.userService = userService;
     this.noteService = noteService;
     this.commonService = commonService;
     this.youfferMessageService = youfferMessageService;
     this.oppService = oppService;
     this.youfferContactService = youfferContactService;
     this.youfferLeadService = youfferLeadService;
     this.youfferFeedbackService = youfferFeedbackService;
     this.youfferNoteService = youfferNoteService;
     this.youfferInterestService = youfferInterestService;
     this.pushMessageService = pushMessageService;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController" /> class.
 /// </summary>
 /// <param name="loggerService">The Logger service.</param>
 /// <param name="crmManagerService">The CRMManager service.</param>
 /// <param name="userService">The User service.</param>
 /// <param name="youfferContactService">The YoufferContact service.</param>
 /// <param name="commonService">The Common service.</param>
 /// <param name="youfferMessageService">The YoufferMessage service.</param>
 /// <param name="youfferFeedbackService">The youffer feedback service.</param>
 /// <param name="youfferPaymentService">The youffer payment service.</param>
 /// <param name="mapperFactory">The mapper factory.</param>
 /// <param name="vTigerService">the vtiger service. </param>
 /// <param name="pushMessageService">The push service.</param> 
 /// <param name="ip2LocationService">The IP2Location service.</param>
 public UserController(ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, IYoufferContactService youfferContactService, ICommonService commonService, IYoufferMessageService youfferMessageService, IYoufferFeedbackService youfferFeedbackService, IYoufferPaymentService youfferPaymentService, IMapperFactory mapperFactory, IVTigerService vTigerService, IPushMessageService pushMessageService, IIP2LocationService ip2LocationService)
     : base(loggerService)
 {
     this.crmManagerService = crmManagerService;
     this.userService = userService;
     this.youfferContactService = youfferContactService;
     this.commonService = commonService;
     this.youfferMessageService = youfferMessageService;
     this.youfferFeedbackService = youfferFeedbackService;
     this.youfferPaymentService = youfferPaymentService;
     this.mapperFactory = mapperFactory;
     this.vTigerService = vTigerService;
     this.pushMessageService = pushMessageService;
     this.ip2LocationService = ip2LocationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentController" /> class.
 /// </summary>
 /// <param name="g2SService">The g2s service.</param>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="crmManagerService">The CRM manager service.</param>
 /// <param name="userService">The user service.</param>
 /// <param name="commonService">The common service.</param>
 /// <param name="youfferContactService">The youffer contact service.</param>
 /// <param name="paymentService">The youffer payment service</param>
 /// <param name="mapperFactory">The Mapper Factory</param>
 public PaymentController(IG2SService g2SService, ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, ICommonService commonService, IYoufferContactService youfferContactService, IPaymentService paymentService, IMapperFactory mapperFactory)
     : base(loggerService)
 {
     this.g2SService = g2SService;
     this.mapperFactory = mapperFactory;
     this.youfferContactService = youfferContactService;
     this.userService = userService;
     this.commonService = commonService;
     this.crmManagerService = crmManagerService;
     this.paymentService = paymentService;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthRepository" /> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="emailQueueService">The email queue service.</param>
 /// <param name="refreshToken">The refresh token.</param>
 /// <param name="userManager">The user manager.</param>
 /// <param name="roles">The roles.</param>
 /// <param name="mapperFactory">The mapper factory.</param>
 /// <param name="crmManagerService">The CRMManager service.</param>
 /// <param name="commonService"> the commonService</param>
 public AuthRepository(
     IRepository<AuthClients> client,
     IEmailQueueService emailQueueService,
     IRepository<RefreshAuthTokens> refreshToken,
     UserManager<ApplicationUser> userManager,
     IRepository<IdentityRole> roles,
     IMapperFactory mapperFactory,
     ICRMManagerService crmManagerService,
     ICommonService commonService)
 {
     this.client = client;
     this.refreshToken = refreshToken;
     this.userManager = userManager;
     this.roles = roles;
     this.emailQueueService = emailQueueService;
     this.mapperFactory = mapperFactory;
     this.crmManagerService = crmManagerService;
     this.commonService = commonService;
     userManager.UserValidator = new UserValidator<ApplicationUser>(userManager) { AllowOnlyAlphanumericUserNames = false };
     userManager.EmailService = new EmailService();
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommonController"/> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="commonService">The common service.</param>
 /// <param name="crmManagerService">The CRM manager service.</param>
 /// <param name="youfferMessageService">The youffer message service.</param>
 /// <param name="youfferInterestService">the youffer interest service</param>
 /// <param name="mapperFactory"> The mapperFactory</param>
 /// <param name="youfferContactService"> The youffer contact service. </param>
 /// <param name="pushMessageService">The push message service.</param>
 /// <param name="ip2LocationService">The ip2Location service.</param>
 public CommonController(ILoggerService loggerService, ICommonService commonService, ICRMManagerService crmManagerService, IYoufferMessageService youfferMessageService, IYoufferInterestService youfferInterestService, IMapperFactory mapperFactory, IYoufferContactService youfferContactService, IPushMessageService pushMessageService, IIP2LocationService ip2LocationService)
     : base(loggerService)
 {
     this.mapperFactory = mapperFactory;
     this.commonService = commonService;
     this.crmManagerService = crmManagerService;
     this.youfferMessageService = youfferMessageService;
     this.youfferInterestService = youfferInterestService;
     this.youfferContactService = youfferContactService;
     this.pushMessageService = pushMessageService;
     this.ip2LocationService = ip2LocationService;
 }
 /// <summary>
 ///  Initializes a new instance of the <see cref="AccountController" /> class.
 /// </summary>
 /// <param name="authRepository">The Authentication Repository.</param>
 /// <param name="loggerService">The Logger Service.</param>
 /// <param name="crmManagerService">The CRM Manager Service.</param>
 /// <param name="userService">The User Service.</param>
 /// <param name="youfferContactService">The YoufferContact Service.</param>
 /// <param name="commonService">The Common service. </param>
 /// <param name="mapperFactory">The Mapper Factory</param>
 /// <param name="pushService">The Push notification Service.</param>
 /// <param name="youfferInterestService">The youffer interest service.</param>
 /// <param name="youfferMessageService">The youffer message service.</param>
 /// <param name="pushMessageService">The push message service.</param>
 /// <param name="ip2LocationService">The IP2Location service.</param>
 public AccountController(IAuthRepository authRepository, ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, IYoufferContactService youfferContactService, ICommonService commonService, IMapperFactory mapperFactory, IPushMessageService pushService, IYoufferInterestService youfferInterestService, IYoufferMessageService youfferMessageService, IPushMessageService pushMessageService, IIP2LocationService ip2LocationService)
     : base(loggerService)
 {
     this.pushService = pushService;
     this.mapperFactory = mapperFactory;
     this.authRepository = authRepository;
     this.crmManagerService = crmManagerService;
     this.userService = userService;
     this.youfferContactService = youfferContactService;
     this.commonService = commonService;
     this.youfferInterestService = youfferInterestService;
     this.youfferMessageService = youfferMessageService;
     this.pushMessageService = pushMessageService;
     this.ip2LocationService = ip2LocationService;
 }