Exemplo n.º 1
0
 public MessagingCredentialCache(Services.IServiceProvider serviceProvider)
 {
     //_CredentialsObserver
     _serviceProvider = serviceProvider;
     var userAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
     _cacheFile = Path.Combine(userAppData, "CredentialCache.xml");
     if (!Directory.Exists(userAppData))
         Directory.CreateDirectory(userAppData);
     if (File.Exists(_cacheFile))
         LoadCache();
     else
         InitializeCache();
 }
Exemplo n.º 2
0
        protected ViewModelBase(string name, SimpleContainerEx container, IEventAggregator eventAggregator, INavigationServiceProvider navigationServiceProvider,
                                string navigationServiceName, Services.IServiceProvider serviceProvider)
        {
            Name                      = name;
            Container                 = container;
            EventAggregator           = eventAggregator;
            NavigationServiceProvider = navigationServiceProvider;
            ServiceProvider           = serviceProvider;

            if (!string.IsNullOrEmpty(navigationServiceName))
            {
                InitNavigationService(navigationServiceName);
            }
        }
 public SystemSelectionDialogViewModel(string name, SimpleContainerEx container, IEventAggregator eventAggregator,
                                       INavigationServiceProvider navigationServiceProvider, string navigationServiceName, Services.IServiceProvider serviceProvider) :
     base(name, container, eventAggregator, navigationServiceProvider, navigationServiceName, serviceProvider)
 {
     Systems = new ObservableCollection <Model.System>();
 }
Exemplo n.º 4
0
 public UserProvider(Services.IServiceProvider serviceProvider)
 {
     _services = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
 }
Exemplo n.º 5
0
 public RoleProvider(Services.IServiceProvider serviceProvider)
 {
     _services = serviceProvider;
 }
Exemplo n.º 6
0
 protected ViewModelBase(Services.IServiceProvider serviceProvider = null)
 {
     ServiceProvider = serviceProvider ?? new ServiceProvider();
 }