Example #1
0
 public PostagemCommandHandlerBase(IUserInformation user,
                                   ILogger <THandler> logger,
                                   IMapperServices mapper,
                                   IPostagemRepository postagemRepository) : base(user, logger, mapper)
 {
     _postagemRepository = postagemRepository;
 }
 private static void PrintUserInformation(IUserInformation proxy)
 {
     Console.WriteLine("Calling the service");
     var userInfo = proxy.GetUserInformation();
     Console.WriteLine("Username from SecurityServiceContext: " + userInfo.SecurityServiceContextUsername);
     Console.WriteLine("Username from Thread's CurrentPrincial: " + userInfo.ThreadCurrentPrincipalUsername);
 }
Example #3
0
        private static void PrintUserInformation(IUserInformation proxy)
        {
            Console.WriteLine("Calling the service");
            var userInfo = proxy.GetUserInformation();

            Console.WriteLine("Username from SecurityServiceContext: " + userInfo.SecurityServiceContextUsername);
            Console.WriteLine("Username from Thread's CurrentPrincial: " + userInfo.ThreadCurrentPrincipalUsername);
        }
Example #4
0
 public CommandHandlerBase(IUserInformation user,
                           ILogger <THandler> logger,
                           IMapperServices mapper)
 {
     _user   = user;
     _logger = logger;
     _mapper = mapper;
 }
 public DataEnrichmentBusiness(IEffectiveAuthorizationTimelineFactory effectiveAuthorizationTimelineFactory,
                               IReportingStorage reportingStorage, IUserInformation userInformation, ILogger logger
                               )
 {
     _effectiveAuthorizationTimelineFactory = effectiveAuthorizationTimelineFactory;
     _reportingStorage = reportingStorage;
     _userInformation  = userInformation;
     _logger           = logger;
 }
 public ListarPostagensRecentesQueryHandler(IUserInformation user,
                                            ILogger <ListarPostagensRecentesQueryHandler> logger,
                                            IPostagemQuery postagemQuery,
                                            ICacheServices cacheServices)
     : base(user, logger)
 {
     _postagemQuery = postagemQuery;
     _cacheServices = cacheServices;
 }
 public ObterPostagemQueryHandler(IUserInformation user,
                                  ILogger <ObterPostagemQueryHandler> logger,
                                  IPostagemQuery postagemQuery,
                                  ICacheServices cacheServices)
     : base(user, logger)
 {
     _postagemQuery = postagemQuery;
     _cacheServices = cacheServices;
 }
Example #8
0
        //public ICommand GotoHome => new Command<string>(OnGotoHome);
        public PinCodeViewModel(INavigationService navigationService, IUserInformation userInformation,
                                IFeature checkpincode, IAuthentication authentication, IUserInformationLocalStorage userInformationLocalStorage) : base(navigationService, false)
        {
            _userInformation             = userInformation ?? throw new ArgumentNullException(nameof(userInformation));
            _checkpincode                = checkpincode ?? throw new ArgumentNullException(nameof(checkpincode));
            _authentication              = authentication ?? throw new ArgumentNullException(nameof(authentication));
            _userInformationLocalStorage = userInformationLocalStorage ?? throw new ArgumentNullException(nameof(userInformationLocalStorage));

            Initialize();
        }
Example #9
0
 public SourceControl(IRepository repository,
                      IRepositoryManager repositoryManager,
                      IDeploymentManager deploymentManager,
                      IUserInformation userInformation)
 {
     _repository = repository;
     _repositoryManager = repositoryManager;
     _deploymentManager = deploymentManager;
     _userInformation = userInformation;
 }
 /// <summary>
 /// Adds the item.
 /// </summary>
 /// <param name="information">The information.</param>
 private void AddItem(IUserInformation information)
 {
     if ((Dispatcher == null) || Dispatcher.Thread.Equals(System.Threading.Thread.CurrentThread))
     {
         _infos.Add(information);
     }
     else
     {
         Dispatcher.Invoke(new AddItemDelegate(AddItem), information);
     }
 }
Example #11
0
 public MerchantPaymentScanQrCodeViewModel(INavigationService navigationService,
                                           IEventAggregator ea,
                                           IUserInformation userInformation,
                                           IAuthentication authentication,
                                           IFeature makepayment) : base(navigationService)
 {
     _ea = ea;
     _userInformation = userInformation ?? throw new ArgumentNullException(nameof(userInformation));
     _authentication  = authentication ?? throw new ArgumentNullException(nameof(authentication));
     _makepayment     = makepayment ?? throw new ArgumentNullException(nameof(makepayment));
 }
Example #12
0
 public ForcePincodeChangePopupViewModel(INavigationService navigationService,
                                         IAuthentication authentication,
                                         IFeature updateservice,
                                         IUserInformation userInformation,
                                         IUserInformationLocalStorage userInformationLocalStorage
                                         ) : base(navigationService)
 {
     _authentication              = authentication ?? throw new ArgumentNullException(nameof(authentication));
     _userInformation             = userInformation ?? throw new System.ArgumentNullException(nameof(userInformation));
     _updatepinservice            = updateservice ?? throw new ArgumentNullException(nameof(updateservice));
     _userInformationLocalStorage = userInformationLocalStorage ?? throw new ArgumentNullException(nameof(userInformationLocalStorage));
 }
Example #13
0
        public ManualPaymentViewModel(INavigationService navigationService,
                                      IEventAggregator ea,
                                      IAuthentication authentication,
                                      IUserInformation userinformation,
                                      IFeature makepayment) : base(navigationService)
        {
            _authentication  = authentication;
            _userinformation = userinformation;
            _makepayment     = makepayment;

            _ea = ea;
            PreviousText.Value = TranslateManagerHelper.Convert("cancel").ToUpperInvariant();
            NextText.Value     = TranslateManagerHelper.Convert("next").ToUpperInvariant();
            Initialize();
        }
Example #14
0
        public VouchersViewModel(INavigationService navigationService,
                                 IEventAggregator ea,
                                 IApplications applicationsService,
                                 IFeature feature,
                                 IAppInfo appInfo,
                                 IQRCode qrcode,
                                 IAuthentication authentication,
                                 IUserInformation userInformation) : base(navigationService)
        {
            _ea = ea;
            _applicationsService = applicationsService ?? throw new ArgumentNullException(nameof(applicationsService));
            _feature             = feature ?? throw new ArgumentNullException(nameof(feature));
            _userInformation     = userInformation ?? throw new ArgumentNullException(nameof(userInformation));
            _appInfo             = appInfo ?? throw new ArgumentNullException(nameof(appInfo));
            _authentication      = authentication ?? throw new ArgumentNullException(nameof(authentication));
            _qrcode = qrcode ?? throw new ArgumentNullException(nameof(qrcode));

            Initialize();
        }
Example #15
0
        public CharityViewModel(INavigationService navigationService,
                                IEventAggregator ea,
                                IAuthentication authentication,
                                IUserInformation userInformation,
                                IFeature donationservice,
                                IOrganizations organizations,
                                IAppInfo appInfo,
                                IFeature statementsservice) : base(navigationService)
        {
            _organizations     = organizations ?? throw new System.ArgumentNullException(nameof(organizations));
            _authentication    = authentication ?? throw new System.ArgumentNullException(nameof(authentication));
            _donationservice   = donationservice ?? throw new System.ArgumentNullException(nameof(donationservice));
            _userInformation   = userInformation ?? throw new System.ArgumentNullException(nameof(userInformation));
            _appInfo           = appInfo ?? throw new System.ArgumentNullException(nameof(appInfo));
            _statementsservice = statementsservice ?? throw new System.ArgumentNullException(nameof(statementsservice));

            _ea = ea;
            Initialize();
        }
Example #16
0
 public GiftCardViewModel(INavigationService navigationService,
                          IEventAggregator ea,
                          IAuthentication authentication,
                          IFeature creategiftcardservice,
                          IUserInformation userInformation,
                          IOrganizations organizations,
                          IQRCode qRCode,
                          IAppInfo appInfo,
                          IApplications applicationsService,
                          IFeature giftcardservice) : base(navigationService)
 {
     _ea                    = ea;
     _authentication        = authentication ?? throw new System.ArgumentNullException(nameof(authentication));
     _creategiftcardservice = creategiftcardservice ?? throw new System.ArgumentNullException(nameof(userInformation));
     _userInformation       = userInformation ?? throw new System.ArgumentNullException(nameof(userInformation));
     _organizations         = organizations ?? throw new System.ArgumentNullException(nameof(organizations));
     _qRCode                = qRCode ?? throw new System.ArgumentNullException(nameof(qRCode));
     _appInfo               = appInfo ?? throw new System.ArgumentNullException(nameof(appInfo));
     _applicationsService   = applicationsService ?? throw new System.ArgumentNullException(nameof(applicationsService));
     _giftcardservice       = giftcardservice ?? throw new System.ArgumentNullException(nameof(giftcardservice));
     InitializeInput();
     LoadGiftCard();
 }
 public DevelopmentEnvironment(IUserInformation userInformation,
                               ISiteConfiguration configuration)
 {
     _userInformation = userInformation;
     _configuration = configuration;
 }
Example #18
0
File: Host.cs Project: sunoru/PBO
 void OnSendInformation(IUserInformation info, params int[] userIds)
 {
   if (userIds.Length < 1) SendInformation(info, users.ToArray());
   else SendInformation(info, userIds);
 }
 public ListarPostagensPorUsuarioQueryHandler(IUserInformation user,
                                              ILogger <ListarPostagensPorUsuarioQueryHandler> logger,
                                              IPostagemQuery postagemQuery) : base(user, logger)
 {
     _postagemQuery = postagemQuery;
 }
Example #20
0
 public ComentarPostagemCommandHandler(IUserInformation user,
                                       ILogger <ComentarPostagemCommandHandler> logger,
                                       IMapperServices mapper,
                                       IPostagemRepository postagemRepository) : base(user, logger, mapper, postagemRepository)
 {
 }
Example #21
0
 internal Information(IApplicationInformation application, IMachineInformation machine, IUserInformation user)
 {
     Application = application;
     Machine = machine;
     User = user;
 }
Example #22
0
File: User.cs Project: sunoru/PBO
 void IUser.ExecuteInformation(IUserInformation info)
 {
   info.Execute(this);
 }
Example #23
0
 public PageDefinition(IUserInformation userInformation)
 {
     UserInformation = userInformation;
 }
Example #24
0
 public UserInformation(IUserInformation userInformation)
 {
     _userInformation = userInformation;
 }
Example #25
0
 /// <summary>
 /// Adds an item to the collection.
 /// </summary>
 /// <param name="information">The item to add</param>
 public void AddItem(IUserInformation information)
 {
     _infoCollection.Add(information);
 }
 public CommandHandlerMediatRBase(IUserInformation user,
                                  ILogger <THandler> logger,
                                  IMapperServices mapper)
     : base(user, logger, mapper)
 {
 }
 public QueryHandlerMediatRBase(IUserInformation user, ILogger <THandler> logger) : base(user, logger)
 {
 }
Example #28
0
 public UserInfoController(IUserInformation userInformation)
 {
     _userInformation = userInformation;
 }
 public QueryHandlerBase(IUserInformation user, ILogger <THandler> logger)
 {
     _user   = user;
     _logger = logger;
 }
 private static void SetDefaultInstance()
 {
     if (theFactory == null) {
         theFactory = UserInformation<User, WhoIsOnline>.Instance(new HttpContextWrapper(HttpContext.Current), new WhoIsOnlineService<User, WhoIsOnline>(new EntityWhoIsOnlineRepository()), new GetUserStrategy());
     }
 }
 public static void SetInstance(IUserInformation<User, WhoIsOnline> userInformation)
 {
     theFactory = userInformation;
 }
Example #32
0
 public PinCodePopupViewModel(INavigationService navigationService, IUserInformation userInformation, IUserInformationLocalStorage userInformationLocalStorage) : base(navigationService)
 {
     _userInformation             = userInformation ?? throw new System.ArgumentNullException(nameof(userInformation));
     _userInformationLocalStorage = userInformationLocalStorage ?? throw new ArgumentNullException(nameof(userInformationLocalStorage));
     Initialize();
 }