Ejemplo n.º 1
0
 public NotificationProxyWrapper([NotNull] INotificationProxy proxy)
 {
     if (proxy == null)
     {
         throw new ArgumentNullException("proxy");
     }
     this._proxy = proxy;
 }
Ejemplo n.º 2
0
 public NotificationProxyWrapper([NotNull] INotificationProxy proxy)
 {
     if (proxy == null)
     {
         throw new ArgumentNullException(nameof(proxy));
     }
     _proxy = proxy;
 }
Ejemplo n.º 3
0
 public NotificationAppService(INotificationProxy notificationProxy, IIDMProxy iDMProxy, IMemoryCache cache, INotificationQueries iNotificationQuerie, IINotificationCommands notifayCommands, IGenericCommandRepository genericrepository, ILogger <NotificationAppService> logger,
                               IMapper mapper, IBranchServiceQueries BrancheQuery, ICommitteeQueries CommitteeQuery, IHttpContextAccessor httpContextAccessor, IOptionsSnapshot <RootConfigurations> optionsSnapShot)
 {
     _notificationProxy   = notificationProxy;
     _idmProxy            = iDMProxy;
     _cache               = cache;
     _genericrepository   = genericrepository;
     _iNotificationQuerie = iNotificationQuerie;
     _notifayCommands     = notifayCommands;
     _logger              = logger;
     _mapper              = mapper;
     _BranchQuery         = BrancheQuery;
     _CommitteeQuery      = CommitteeQuery;
     _configuration       = optionsSnapShot.Value;
     _httpContextAccessor = httpContextAccessor;
 }
Ejemplo n.º 4
0
 public VendorsController(
     IVendorService vendorService, 
     IReviewService reviewService, 
     IPortfolioService portfolioService, 
     IBookService bookService,
     IHistoryService historyService,
     IWorkService workService,
     IContactService contactService,
     IRatingService ratingService,
     INotificationProxy notificationProxy,
     IAnalyticsService analyticsService)
 {
     _vendorService = vendorService;
     _reviewService = reviewService;
     _portfolioService = portfolioService;
     _bookService = bookService;
     _historyService = historyService;
     _workService = workService;
     _contactService = contactService;
     _ratingService = ratingService;
     _notificationProxy = notificationProxy;
     _analyticsService = analyticsService;
 }
Ejemplo n.º 5
0
        private async Task LoadData()
        {
            try
            {
                INotificationProxy notificationProxy = BasicProxiesFactory.GetNotificationProxy();

                var response = await notificationProxy.GetNotification();

                _notificationList = response.Data.OrderByDescending(x => x.Id).ToList();
            }
            catch (Exception e)
            {
                Activity.RunOnUiThread(() =>
                                       Toast.MakeText(Activity, "¡Lo sentimos! Las notificaciones no se encuentra disponibles.", ToastLength.Long).Show()
                                       );
                //bool dialogResult = await AlertDialogHelper.ShowAsync(Activity, "Error", "Ha sucedido en error en la aplicación. Notificaciones", "Reintentar", "Cancelar");
                //Toast.MakeText(Activity, e.Message, ToastLength.Long).Show();

                //if (dialogResult)
                //{
                //    await LoadData();
                //}
            }
        }
Ejemplo n.º 6
0
 public static void Register(INotificationProxy proxy)
 {
     Socket.Call(proxy);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Register new proxy.
 /// </summary>
 /// <param name="proxy"></param>
 public static void Register(INotificationProxy proxy)
 {
     Socket.Call(proxy);
 }
Ejemplo n.º 8
0
 public AdminService(IUnitOfWorkFactory unitOfWorkFactory, INotificationProxy notificationProxy, IAuthService authService)
 {
     _uowFactory        = unitOfWorkFactory;
     _notificationProxy = notificationProxy;
     _authService       = authService;
 }
Ejemplo n.º 9
0
 public NotificationService(IUnitOfWork unitOfWork, INotificationProxy proxy)
 {
     _unitOfWork = unitOfWork;
     _proxy      = proxy;
 }
Ejemplo n.º 10
0
 public NotificationProxyWrapper([NotNull] INotificationProxy proxy)
 {
     if (proxy == null) throw new ArgumentNullException(nameof(proxy));
     _proxy = proxy;
 }
 public NotificationProxyWrapper([NotNull] INotificationProxy proxy)
 {
     if (proxy == null) throw new ArgumentNullException("proxy");
     this._proxy = proxy;
 }
Ejemplo n.º 12
0
 public NotificationService(INotificationProxy notificationProxy)
 {
     _notificationProxy = notificationProxy;
 }
Ejemplo n.º 13
0
 public NotificationProxyWrapper([CanBeNull] INotificationProxy proxy)
 {
     _proxy = proxy ?? throw new ArgumentNullException(nameof(proxy));
 }
 public NotificationResendJobService(INotificationQueries iNotificationQuerie, IINotificationCommands notificationCommands, INotificationProxy notificationProxy)
 {
     _NotificationQuerie   = iNotificationQuerie;
     _NotificationCommands = notificationCommands;
     _NotificationProxy    = notificationProxy;
 }
Ejemplo n.º 15
0
 public NotificationProxyWrapper(INotificationProxy proxy)
 {
     this._proxy = proxy;
 }