public EventDetailsViewModel(ILocalStorageService localStorageService, INetworkConnectionService networkConnectionService, IMessageDialogService messageDialogService, IEventService eventService)
 {
     _localStorageService = localStorageService;
     _networkConnectionService = networkConnectionService;
     _messageDialogService = messageDialogService;
     _eventService = eventService;
 }
 public LanguageService(IUnitOfWork unitOfWork, IExceptionHandler exceptionHandler, ILocalStorageService storageService, HttpContextBase context)
 {
     this.unitOfWork = unitOfWork;
     this.languageRepository = unitOfWork.LanguageRepository;
     this.exceptionHandler = exceptionHandler;
     this.storageService = storageService;
     this.context = context;
 }
Exemple #3
0
 public ThumbnailService(ILocalStorageService azureService
     , IProjectService projectService
     , IUserService userService)
 {
     this.serviceLocalStorage = azureService;
     this.serviceProject = projectService;
     this.serviceUser = userService;
 }
        public WeatherViewModel(IWeatherSevice weatherSevice, IEventAggregator eventAggregator, ILocalStorageService localStorage)
        {
            _weatherSevice = weatherSevice;
            _eventAggregator = eventAggregator;
            _localStorage = localStorage;

            LoadWeatherCommand = new DelegateCommand(LoadWeatherCommandExecuted, LoadWeatherCommandCanExecute);
        }
        public MainPage(ILocalStorageService localStorageService, FakeUsageReporter fakeUsageReporter)
        {
            InitializeComponent();

            _log = new StringBuilder();

            _localStorageService = localStorageService;
            _fakeUsageReporter = fakeUsageReporter;
        }            
Exemple #6
0
 public ProfileController(IUserService userService, IDropBoxService dropboxService
      , ILogService logService
     , ILocalStorageService localStorageService
     )
     : base(userService, logService)
 {
     this.serviceDropbox = dropboxService;
     this.serviceLocalStorage = localStorageService;
 }
        public PlaylistRepository(ILocalStorageService localStorageService)
        {
            this.localStorageService = localStorageService;

            userSettings = localStorageService.Retrieve<UserSettings>();

            if (userSettings == null)
            {
                userSettings = new UserSettings();
                SaveChanges();
            }
        }
Exemple #8
0
        //  public string DefaultSavePath  {get;set;}
        public TempFileService(ITempFileRepository _repo
            , IUserRepository _userRepo
            , IWaveformService _waveformService
            , IFileService _fileService
            , IDropBoxService _dropboxService
            , ISkydriveService _skydriveService
            , IThumbnailRepository _thumbnailRepository
            , ILogService _logService
            , ILocalStorageService _azureService
            )
        {
            fileRepo = _repo;

            userRepo = _userRepo;
            serviceWaveform = _waveformService;
            this.serviceMogFile = _fileService;
            this.serviceDropbox = _dropboxService;
            this.serviceSkydrive = _skydriveService;
            this.repositoryThumbnail = _thumbnailRepository;
            this.serviceLog = _logService;
            this.serviceLocalStorage = _azureService;
        }
 public AuthProvider(HttpClient httpClient, ILocalStorageService localStorage)
 {
     this.httpClient   = httpClient;
     this.localStorage = localStorage;
 }
Exemple #10
0
 public ApiAuthenticationStateProvider(HttpClient httpClient, ILocalStorageService localStorage)
 {
     _httpClient   = httpClient;
     _localStorage = localStorage;
 }
 public NoteService(ILocalStorageService localStorageService)
 {
     this._LocalStorageService = localStorageService;
 }
 public JwtAuthenticationStateProvider(ILocalStorageService localStorageService, HttpClient httpClient)
 {
     anonymous = new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity()));
     this.localStorageService = localStorageService;
     this.httpClient          = httpClient;
 }
Exemple #13
0
 public GoogleDriveAPI(HttpClient httpClient, ILocalStorageService localStorage)
 {
     _httpClient   = httpClient;
     _localStorage = localStorage;
 }
Exemple #14
0
 public FunctionService(ILocalStorageService localStorage)
 {
     this.localStorage = localStorage;
 }
 public DiscoTileBackgroundTask()
 {
     localStorageService = new LocalStorageService();
     random = new Random();
 }
 public WeatherForecastService(HttpClient httpClient, ILocalStorageService localStorageService)
 {
     this.httpClient     = httpClient;
     LocalStorageService = localStorageService;
 }
 public AuthenticationRepository(IHttpClientFactory client, ILocalStorageService localStorage, AuthenticationStateProvider authenticationStateProvider)
 {
     _client       = client;
     _localStorage = localStorage;
     _authenticationStateProvider = authenticationStateProvider;
 }
Exemple #18
0
 public SetStateHandler(IConfiguration configuration, ISessionStorageService sessionStorageService, ILocalStorageService localStorageService, SweetAlertService sweetAlertService, NavigationManager navigationManager, EndPointsModel endPoints, IHttpClient httpClient, HttpClient baseHttpClient, IJSRuntime jsRuntime, IMediator mediator, IStore store) : base(configuration, sessionStorageService, localStorageService, sweetAlertService, navigationManager, endPoints, httpClient, baseHttpClient, jsRuntime, mediator, store)
 {
     Configuration         = configuration;
     SessionStorageService = sessionStorageService;
     LocalStorageService   = localStorageService;
     SweetAlertService     = sweetAlertService;
     NavigationManager     = navigationManager;
     EndPoints             = endPoints;
     HttpClient            = httpClient;
     BaseHttpClient        = baseHttpClient;
     JsRuntime             = jsRuntime;
     Mediator = mediator;
     Store    = store;
 }
Exemple #19
0
 public DataRepositoryLocalStorage(ILocalStorageService localStorage)
 {
     _localStorage = localStorage;
 }
Exemple #20
0
 public CustomAuthStateProvider(ILocalStorageService localStorageService)
 {
     this.localStorageService = localStorageService;
 }
 public CurrentCultureService(ILocalStorageService localStorageService, ISyncLocalStorageService syncLocalStorageService)
 {
     _localStorageService     = localStorageService;
     _syncLocalStorageService = syncLocalStorageService;
 }
Exemple #22
0
 public OAuthAuthenticationStateProvider(ILocalStorageService localStorage)
 {
     this.localStorage = localStorage;
 }
Exemple #23
0
 public CategoryDataService(IClient client, IMapper mapper, ILocalStorageService localStorage) : base(client, localStorage)
 {
     _mapper = mapper;
 }
Exemple #24
0
 public TodoServiceLocalStore(ILocalStorageService localStorage)
 {
     _localStorage = localStorage;
 }
Exemple #25
0
 public AppState(ILocalStorageService localStorageService)
 {
     NewTrailState       = new NewTrailState();
     FavoriteTrailsState = new FavoriteTrailsState(localStorageService);
 }
Exemple #26
0
 public TokenAuthenticationStateProvider(ILocalStorageService localStorageService)
 {
     _localStorageService = localStorageService;
 }
 public MealService(ILocalStorageService localStorageService)
 {
     _localStorageService = localStorageService;
 }
 public BaseRepository(IHttpClientFactory client, ILocalStorageService localStorage)
 {
     _client       = client;
     _localStorage = localStorage;
 }
Exemple #29
0
 public AuthService(HttpClient http, NavigationManager nav, ILocalStorageService localStorage)
 {
     _http         = http;
     _nav          = nav;
     _localStorage = localStorage;
 }
 public ApiAuthenticationStateProvider(ILocalStorageService localStorage,
                                       JwtSecurityTokenHandler tokenHandler)
 {
     _localStorage = localStorage;
     _tokenHandler = tokenHandler;
 }
Exemple #31
0
 public CustomAuthenticationStateProvider(ILocalStorageService localStorage)
 {
     _localStorage = localStorage;
 }
		public MainViewModel(IUrlService urlService, INavigationService navigationService, ILocalStorageService localStorageService, StackOverflowService stackOverflowService)
		{
			_UrlService = urlService;
			_NavigationService = navigationService;
			_LocalStorageService = localStorageService;
			_StackOverflowService = stackOverflowService;

			Tags = new ObservableCollection<string>();
			Questions = new ObservableCollection<Question>();
		}
Exemple #33
0
 public HttpRequestMessageProvider(ILocalStorageService localStorageService = null)
 {
     _LocalStorage = localStorageService;
 }
Exemple #34
0
        //
        public EmployeeEditViewModel(IDataService <Employee> es, ILocalStorageService ls, MainViewModel vm)
        {
            _vm = vm;
            _es = es;
            _ls = ls;
            this.isInitializing = true;
            try
            {
                if (_vm.ActiveViewModels.Count > 0)
                {
                    var employee = _vm.ActiveViewModels.First(f => f.Value == "Employee").Value == "Employee";
                    if (employee.IsFalse())
                    {
                        _vm.ActiveViewModels.Add(this.GetType(), "Employee");
                    }
                }
                else
                {
                    _vm.ActiveViewModels.Add(this.GetType(), "Employee");
                }
            }
            catch (Exception e)
            {
                _vm.ActiveViewModels.Add(this.GetType(), "Employee");
            }


            Messenger.Default.Register <EmployeeChangedMessage>(this, this.HandleEmployeeChangedMessage);
            Messenger.Default.Register <ContentPresenterChangedMessage>(this, this.HandleContentPresenterChangedMessage);
            Messenger.Default.Register <AdminDataCloseMessage>(this, this.HandleAdminDataCloseMessage);
            Messenger.Default.Register <NotifyResultMessage>(this, this.HandleNotifyResultMessage);


            this.AddEmployeeCommand               = new RelayCommand(this.ExecuteAddEmployeeCommand, this.CanExecuteAddEmployeeCommand);
            this.EditEmployeeCommand              = new RelayCommand(this.ExecuteEditEmployeeCommand, this.CanExecuteEditEmployeeCommand);
            this.DeleteEmployeeCommand            = new RelayCommand(this.ExecuteDeleteEmployeeCommand, this.CanExecuteDeleteEmployeeCommand);
            this.SaveEmployeeCommand              = new RelayCommand(this.ExecuteSaveEmployeeCommand, this.CanExecuteSaveEmployeeCommand);
            this.CancelEmployeeCommand            = new RelayCommand(this.ExecuteCancelEmployeeCommand, this.CanExecuteCancelEmployeeCommand);
            this.NotificationMessageViewedCommand = new RelayCommand(this.ExecuteNotificationMessageViewedCommand, thisCanExecuteNotificationMessageViewedCommand);

            this.ShowEditButtons(true);
            this.GetDataListsAsync();

            #region CreateManualLists
            //var dist = new Employee() { PK_Employee=1, EmployeeName = "Gap Employee", FK_Region = 2 };
            //this.EmployeeList = new ObservableCollection<Employee>
            //{
            //	dist
            //};

            //if (this.EmployeeList.Count > 0)
            //{
            //	this.SelectedListItem = this.EmployeeList[0];
            //}

            //var reg = new Region() { PK_Region=2, RegionName = "Pennsylvania Region" };
            //this.RegionList = new ObservableCollection<Region> { reg };
            //reg = new Region() { PK_Region=1, RegionName = "Alabama Region" };
            //this.RegionList.Add(reg);
            //if (this.RegionList.Count > 0)
            //{
            //	var item = this.RegionList.Where(w => w.PK_Region == dist.FK_Region).FirstOrDefault();
            //	if(item != null)
            //	{
            //		this.SelectedRegionItem = item;
            //	}
            //}
            #endregion
        }
Exemple #35
0
 public BasketService(ILocalStorageService localStorage)
 {
     this.localStorage = localStorage;
     Fetch();
 }
Exemple #36
0
 public SessionService(ILocalStorageService localStorageService)
 {
     this.localStorageService = localStorageService;
 }
Exemple #37
0
 public SignupViewModel(ILocalStorageService localStorageService, ITogglRestService togglRestService)
 {
     _localStorageService = localStorageService;
     _togglRestService = togglRestService;
 }
Exemple #38
0
 public AdServices(HttpClient httpClient, ILocalStorageService localStorageService, ITokenServices tokenServices)
 {
     this.httpClient          = httpClient;
     this.localStorageService = localStorageService;
     this.tokenServices       = tokenServices;
 }
 public BookRepository(HttpClient client, ILocalStorageService localStorage) : base(client, localStorage)
 {
     _client       = client;
     _localStorage = localStorage;
 }
		public SettingsService(ILocalStorageService localStorageService)
		{
			_LocalStorageService = localStorageService;
		}
Exemple #41
0
 protected LoginServiceBase()
 {
     this.GitHubClient = App.Container.Resolve<IGitHubClient>();
     LocalStorageService = App.Container.Resolve<ILocalStorageService>();
     RefreshCredentialsFromStorage();
 }
 public AuthorRepository(IHttpClientFactory client,
                         ILocalStorageService localStorage) : base(client, localStorage)
 {
     _client       = client;
     _localStorage = localStorage;
 }
 public LocalAuthenticationStateProvider(ILocalStorageService storageService)
 {
     _storageService = storageService;
 }
Exemple #44
0
 public MainViewModel(ILocalStorageService storageService)
 {
     _storageService = storageService;
 }