Пример #1
0
 public MessageService()
 {
     _userSession = new SPKTCore.Core.Impl.UserSession();
     _messageRepository = new SPKTCore.Core.DataAccess.Impl.MessageRepository();
     _messageRecipientRepository = new SPKTCore.Core.DataAccess.Impl.MessageRecipientRepository();
     _accountRepository = new SPKTCore.Core.DataAccess.Impl.AccountRepository();
     _email =new SPKTCore.Core.Impl.Email();
 }
Пример #2
0
 public LoadMessagePresenter()
 {
     _messageRepository          = new MessageRepository();
     _messageRecipientRepository = new MessageRecipientRepository();
     _userSession = new UserSession();
     _webContext  = new WebContext();
     _ac          = new AccountRepository();
 }
Пример #3
0
 public MessageService()
 {
     _userSession                = new SPKTCore.Core.Impl.UserSession();
     _messageRepository          = new SPKTCore.Core.DataAccess.Impl.MessageRepository();
     _messageRecipientRepository = new SPKTCore.Core.DataAccess.Impl.MessageRecipientRepository();
     _accountRepository          = new SPKTCore.Core.DataAccess.Impl.AccountRepository();
     _email = new SPKTCore.Core.Impl.Email();
 }
Пример #4
0
 public BriefMessage()
 {
     _messageRepository          = new MessageRepository();
     _messageRecipientRepository = new MessageRecipientRepository();
     _userSession = new UserSession();
     _webContext  = new WebContext();
     _ac          = new AccountRepository();
 }
Пример #5
0
 public LoadMessagePresenter()
 {
     _messageRepository = new MessageRepository();
     _messageRecipientRepository = new MessageRecipientRepository();
     _userSession = new UserSession();
     _webContext = new WebContext();
     _ac = new AccountRepository();
 }
Пример #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _messageService = new SPKTCore.Core.Impl.MessageService();
     _webContext     = new SPKTCore.Core.Impl.WebContext();
     _ac             = new SPKTCore.Core.DataAccess.Impl.AccountRepository();
     _ms             = new SPKTCore.Core.DataAccess.Impl.MessageRecipientRepository();
     _bi             = new BriefMessage();
     _mi             = new SPKTCore.Core.DataAccess.Impl.MessageRepository();
     Image1.Enabled  = false;
     //ImageButton1.Enabled = false;
     pn3.Visible = false;
 }
Пример #7
0
 public MessageService(IMessageRepository messageRepository, IPushService pushService,
                       ICommunicationService communicationService,
                       IQueueService queueService, IUserProfileService userProfileService,
                       IMessageRecipientRepository messageRecipientRepository)
 {
     _messageRepository          = messageRepository;
     _pushService                = pushService;
     _communicationService       = communicationService;
     _queueService               = queueService;
     _userProfileService         = userProfileService;
     _messageRecipientRepository = messageRecipientRepository;
 }
Пример #8
0
 public UnitOfWork(ApplicationDbContext context,
                   UserManager <ApplicationUser> userRepository,
                   SignInManager <ApplicationUser> signInRepository,
                   IEmailSender emailSender,
                   IPhoneRepository phoneRepository,
                   IMessageRepository messageRepository,
                   IAdditInfoRepository additInfoRepository,
                   IMessageRecipientRepository messageRecipientRepository)
 {
     EmailSender                = emailSender;
     UserRepository             = userRepository;
     SignInRepository           = signInRepository;
     PhoneRepository            = phoneRepository;
     MessageRepository          = messageRepository;
     AdditInfoRepository        = additInfoRepository;
     MessageRecipientRepository = messageRecipientRepository;
     this.context               = context;
 }
Пример #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _messageService = new SPKTCore.Core.Impl.MessageService();
     _webContext = new SPKTCore.Core.Impl.WebContext();
     _ac = new SPKTCore.Core.DataAccess.Impl.AccountRepository();
     _ms = new SPKTCore.Core.DataAccess.Impl.MessageRecipientRepository();
     _bi = new BriefMessage();
     _mi = new SPKTCore.Core.DataAccess.Impl.MessageRepository();
     Image1.Enabled = false;
     //ImageButton1.Enabled = false;
     pn3.Visible = false;
 }