コード例 #1
0
 public AuthenticationService(Func <IPublicClientApplication> pcaFactory, IAuthConfiguration configuration,
                              ICurrentActivity currentActivity)
 {
     _client         = pcaFactory();
     _configuration  = configuration;
     CurrentActivity = currentActivity;
 }
コード例 #2
0
        public void StartWithAppKey(string appKey)
        {
            ICurrentActivity current = CrossCurrentActivity.Current;
            Application      appl    = current.Activity.Application;

            CoLocator.Start(appl, appKey);
        }
コード例 #3
0
 public UserInteractionService(
     ICurrentActivity current,
     IScheduler mainScheduler = null)
     : base(mainScheduler)
 {
     _current = current;
 }
コード例 #4
0
 public DateTimeHelper(ICurrentActivity currentActivity,
     IAccountService accountService,
     ISettingService settingService)
 {
     this._currentActivity = currentActivity;
     this._accountService = accountService;
     this._settingService = settingService;
 }
        public BarcodeReaderService(ICurrentActivity currentActivity)
        {
            _currentActivity = currentActivity;

            BarcodeReader = new BarcodeReader(_currentActivity.AppContext);

            IsReaderEnabled = true;
        }
コード例 #6
0
 public SystemSettings(
     ICurrentActivity currentActivity,
     IPermissions permissions
     )
 {
     CurrentActivity = currentActivity;
     Permissions     = permissions;
 }
コード例 #7
0
ファイル: ThemeContext.cs プロジェクト: khiemnd777/aaron-core
 public ThemeContext(ICurrentActivity currentActivity, IGenericAttributeService genericAttributeService,
     WebInformationSettings webInformationSettings, IThemeProvider themeProvider)
 {
     this._currentActivity = currentActivity;
     this._genericAttributeService = genericAttributeService;
     this._webInformationSettings = webInformationSettings;
     this._themeProvider = themeProvider;
 }
コード例 #8
0
 public NoticeService(IRepository<Notice> noticeRepository, 
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     _noticeRepository = noticeRepository;
     _currentActivity = currentActivity;
     _cacheManager = cacheManager;
 }
コード例 #9
0
        public void ActivateForegroundService(string title, int icon, string channel)
        {
            ICurrentActivity current = CrossCurrentActivity.Current;
            Application      appl    = current.Activity.Application;

            Console.WriteLine("Setting Foreground Service with application " + appl + "  title " + title + "  iconID " + icon + "  channel " + channel);
            CoLocator.SetServiceNotificationInfo(appl, title, icon, channel);
        }
コード例 #10
0
 public NavigationService(
     ICurrentActivity currentActivity,
     IViewAdapter <Fragment> viewAdapter,
     IViewFactory viewFactory)
 {
     _currentActivity = currentActivity;
     _viewAdapter     = viewAdapter;
     _viewFactory     = viewFactory;
 }
コード例 #11
0
 public SecurityController(IPermissionService permissionService,
     IAccountService accountService,
     ICurrentActivity currentActivity,
     ILocalizationService localizationService)
 {
     _permissionService = permissionService;
     _accountService = accountService;
     _currentActivity = currentActivity;
     _localizationService = localizationService;
 }
コード例 #12
0
 public LogController(ILogger logger, ICurrentActivity currentActivity,
     ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
     IPermissionService permissionService)
 {
     this._logger = logger;
     this._currentActivity = currentActivity;
     this._localizationService = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._permissionService = permissionService;
 }
コード例 #13
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="permissionPecordRepository">Permission repository</param>
 /// <param name="accountService">Account service</param>
 /// <param name="currentActivity">Current activity</param>
 /// <param name="cacheManager">Cache manager</param>
 public PermissionService(IRepository<PermissionRecord> permissionRecordRepository,
     IAccountService accountService,
     ICurrentActivity currentActivity,
     ICacheManager staticCacheManager)
 {
     this._permissionRecordRepository = permissionRecordRepository;
     this._accountService = accountService;
     this._currentActivity = currentActivity;
     this._cacheManager = staticCacheManager;
 }
コード例 #14
0
 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     this._topicService = topicService;
     this._currentActivity = currentActivity;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
 }
コード例 #15
0
        public NavigationService(
            ICurrentActivity currentActivity,
            IViewAdapter <Fragment> viewAdapter,
            IViewFactory viewFactory)
        {
            _currentActivity = currentActivity;
            _viewAdapter     = viewAdapter;
            _viewFactory     = viewFactory;

            _currentActivity.Activity.FragmentManager.BackStackChanged += (sender, args) =>
            {
            };
        }
コード例 #16
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="activityLogRepository">Activity log repository</param>
 /// <param name="activityLogTypeRepository">Activity log type repository</param>
 /// <param name="currentActivity">Work context</param>
 /// <param name="dbContext">DB context</param>>
 /// <param name="dataProvider">WeData provider</param>
 /// <param name="commonSettings">Common settings</param>
 public AccountActivityService(ICacheManager cacheManager,
     IRepository<ActivityLog> activityLogRepository,
     IRepository<ActivityLogType> activityLogTypeRepository,
     ICurrentActivity currentActivity,
     IContext dbContext, IDataProvider dataProvider, CommonSettings commonSettings)
 {
     this._cacheManager = cacheManager;
     this._activityLogRepository = activityLogRepository;
     this._activityLogTypeRepository = activityLogTypeRepository;
     this._currentActivity = currentActivity;
     this._dbContext = dbContext;
     this._dataProvider = dataProvider;
     this._commonSettings = commonSettings;
 }
コード例 #17
0
 public CommonController(IWebHelper webHelper,
     INoticeService noticeService,
     LocalizationSettings localizationSettings,
     ILanguageService languageService,
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     _webHelper = webHelper;
     _noticeService = noticeService;
     _localizationSettings = localizationSettings;
     _languageService = languageService;
     _currentActivity = currentActivity;
     _cacheManager = cacheManager;
 }
コード例 #18
0
 public AccountController(IAccountRegistrationService accountRegistrationService,
     IAccountService accountService,
     IAuthenticationService authenticationService,
     IGenericAttributeService genericAttributeService,
     ICurrentActivity currentActivity,
     IWorkflowMessageService workflowMessageService,
     AccountSettings accountSettings,
     ILocalizationService localizationService)
 {
     _accountRegistrationService = accountRegistrationService;
     _accountService = accountService;
     _authenticationService = authenticationService;
     _currentActivity = currentActivity;
     _genericAttributeService = genericAttributeService;
     _workflowMessageService = workflowMessageService;
     _accountSettings = accountSettings;
     _localizationService = localizationService;
 }
コード例 #19
0
        public MessageTokenProvider(ILanguageService languageService,
            ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IEmailAccountService emailAccountService,
            IWebHelper webHelper,
            ICurrentActivity currentActivity,
            MessageTemplatesSettings templatesSettings,
            EmailAccountSettings emailAccountSettings,
            WebInformationSettings webSettings)
        {
            this._languageService = languageService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._emailAccountService = emailAccountService;
            this._webHelper = webHelper;
            this._currentActivity = currentActivity;

            this._webSettings = webSettings;
            this._templatesSettings = templatesSettings;
            this._emailAccountSettings = emailAccountSettings;
        }
コード例 #20
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="logger">Logger</param>
 /// <param name="currentActivity">Work context</param>
 /// <param name="lsrRepository">Locale string resource repository</param>
 /// <param name="languageService">Language service</param>
 /// <param name="dataProvider">Data provider</param>
 /// <param name="context">Database Context</param>
 /// <param name="utilitySettings">Common settings</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="eventPublisher">Event published</param>
 public LocalizationService(ICacheManager staticCacheManager,
     /*ILogger logger,*/ ICurrentActivity currentActivity,
     IRepository<LocaleStringResource> lsrRepository,
     ILanguageService languageService,
     IDataProvider dataProvider, IContext context, UtilitySettings utilitySettings,
     LocalizationSettings localizationSettings/*, IEventPublisher eventPublisher*/)
 {
     this._cacheManager = staticCacheManager;
     //this._logger = logger;
     this._currentActivity = currentActivity;
     this._lsrRepository = lsrRepository;
     this._languageService = languageService;
     this._dataProvider = dataProvider;
     this._context = context;
     this._utilitySettings = utilitySettings;
     this._dataProvider = dataProvider;
     this._context = context;
     this._utilitySettings = utilitySettings;
     this._localizationSettings = localizationSettings;
     //this._eventPublisher = eventPublisher;
 }
コード例 #21
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     IAccountRegistrationService accountRegistrationService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity, AccountSettings accountSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._accountRegistrationService = accountRegistrationService;
     this._localizationService = localizationService;
     this._currentActivity = currentActivity;
     this._accountSettings = accountSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
 }
コード例 #22
0
 protected AndroidTextToSpeech(ICurrentActivity currentActivity) =>
コード例 #23
0
 public WifiService(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
     Manager          = (WifiManager)_currentActivity.Activity.GetSystemService(Context.WifiService);
 }
コード例 #24
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="webInformationSettings">Store information settings</param>
 /// <param name="currentActivity">Work context</param>
 public MobileDeviceHelper(WebInformationSettings webInformationSettings,
     ICurrentActivity currentActivity)
 {
     this._webInformationSettings = webInformationSettings;
     this._currentActivity = currentActivity;
 }
コード例 #25
0
 public TextToSpeech_Android(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
 }
コード例 #26
0
 public MarkerSizeProvider(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
 }
コード例 #27
0
 /// <summary>
 /// Initialize a new instance of 'NotificationManager'.
 /// </summary>
 /// <param name="activity">Current Activity.</param>
 public NotifyManager(ICurrentActivity activity)
 {
     _activity = activity;
 }
 public StatusBarService(ICurrentActivity currentActivity)
 {
     _currentActivity  = currentActivity;
     DefaultAttributes = currentActivity.Activity.Window.Attributes;
 }
コード例 #29
0
 public PageToFragmentAdapter(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
 }
 public TextToSpeechService(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
 }
コード例 #31
0
 public FirebasePhoneAuthenticationProvider(ICurrentActivity currentActivity)
 {
     _currentActivity = currentActivity;
 }
コード例 #32
0
        public ViewModelNavigationService(ICurrentActivity currentActivity)
        {
            _currentActivity = currentActivity;

            _navigationMap = GetNavigationMap();
        }
コード例 #33
0
 public OAuthAccountHelper(ICurrentActivity context)
 {
     _context = context;
 }