Exemplo n.º 1
0
 public AnswerController(ILoggerFactory logger, IAnswerService answerService, IAzureService azureService, ISessionBase sessionBase)
 {
     _logger        = logger.CreateLogger <AnswerController>();
     _answerService = answerService;
     _azureService  = azureService;
     _sessionId     = sessionBase.SessionId;
 }
Exemplo n.º 2
0
 public AldoDeployer(IConfiguration configuration, IAzureService azureService, IDeploymentService deploymentService, INotificationService notificationService)
 {
     this.configuration       = configuration;
     this.azureService        = azureService;
     this.deploymentService   = deploymentService;
     this.notificationService = notificationService;
 }
 public MainViewModel()
 {
     TakePhotoCommand         = new Command(async() => await TakePhoto());
     SelectFromLibraryCommand = new Command(async() => await SelectFromLibrary());
     RefreshCommand           = new Command(async() => await Refresh());
     azureService             = DependencyService.Get <IAzureService>();
 }
Exemplo n.º 4
0
        public LoginViewModel(IAzureService azureService, Page page)
        {
            _azureService = azureService as AzureService;
            _page         = page;

            LoginCommand = new Command(ExecuteLoginCommand);
        }
Exemplo n.º 5
0
 public AzureInstallationService(IAzureService azureService,
                                 IPowerShellService powerShellService, ILog logger)
 {
     this.azureService      = azureService;
     this.powerShellService = powerShellService;
     this.logger            = logger;
 }
 public EducationalOrganisationRepository(ICacheProvider cacheProvider, IAzureService azureService,
                                          ILog logger)
 {
     _cacheProvider = cacheProvider;
     _azureService  = azureService;
     _logger        = logger;
 }
        public ServiceWorker()
        {
            DependencyInjector.Initialize();
            var serviceProvider = DependencyInjector.ServiceProvider;

            azureService = serviceProvider.GetService <IAzureService>();
        }
        public AddIncidentDetailViewModel(INetworkService networkService, IUserDialogs userDialogs, IAzureService azureService, IMvxMessenger messenger)
            : base(networkService, userDialogs)
        {
            _azureService = azureService;
            _messenger = messenger;

        }
Exemplo n.º 9
0
 public AzureFilesService(IAzureService service, Action<Message> messageHandler = null,
     Action<ProgressMessage> progressHandler =
     null)
 {
     _service = service;
     SendMessage = messageHandler ?? (m => { });
     SendProgress = progressHandler ?? (m => { });
 }
Exemplo n.º 10
0
 public AzureFilesService(IAzureService service, Action <Message> messageHandler = null,
                          Action <ProgressMessage> progressHandler =
                          null)
 {
     _service     = service;
     SendMessage  = messageHandler ?? (m => { });
     SendProgress = progressHandler ?? (m => { });
 }
Exemplo n.º 11
0
        public BaseViewModel(INavigationService navigationService)
        {
            _navigationService = navigationService;
            NavigateCommand    = new DelegateCommand <string>(Navigate);

            _azureService = App._azureService;
            _user         = _azureService.GetUser();
        }
Exemplo n.º 12
0
 public PBICapacitiesController(ILogger <PBICapacitiesController> logger, ICapacityService capacityService,
                                IOptions <AppConfigSettings> settings, IAzureService azureService)
 {
     _logger          = logger;
     _capacityService = capacityService;
     _settings        = settings.Value;
     _azureService    = azureService;
 }
Exemplo n.º 13
0
        public App(IPlatformInitializer initializer = null) : base(initializer)
        {
#if (TEST)
            _azureService = new MockAzureService();
#else
            _azureService = AzureService.DefaultService;
#endif
        }
        public RecipeListViewModel()
        {
            InitializeAllRecipesGrouped();

            _dataSvc = DependencyService.Get <IAzureService>(DependencyFetchTarget.GlobalInstance);

            // Listen to save message
            MessagingCenter.Subscribe <EditRecipeViewModel>(this, RecipeSavedMessage, async(obj) => await ReadRecipeData());
        }
Exemplo n.º 15
0
        public MainViewModel()
        {
            MessagingCenter.Subscribe <IAzureService>(this, "LoggedIn", async s => await Refresh());

            TakePhotoCommand         = new Command(async() => await TakePhoto());
            SelectFromLibraryCommand = new Command(async() => await SelectFromLibrary());
            RefreshCommand           = new Command(async() => await Refresh());
            azureService             = DependencyService.Get <IAzureService>();
        }
Exemplo n.º 16
0
 public DeviceViewModel(IAzureService azureService,
                        ISelectionService <IoTHubInfo> ioTHubInfoSelectionService, ISelectionService <IoTDeviceInfo> ioTDeviceSelectionService,
                        IViewModelFactory viewModelFactory)
 {
     this.azureService = azureService;
     this.ioTHubInfoSelectionService = ioTHubInfoSelectionService;
     this.ioTDeviceSelectionService  = ioTDeviceSelectionService;
     this.viewModelFactory           = viewModelFactory;
 }
Exemplo n.º 17
0
 public VagaViewModel()
 {
     _azureService          = DependencyService.Get <IAzureService>();
     Title                  = "Vagas";
     Cargos                 = new ObservableCollection <Cargo>();
     Vagas                  = new ObservableCollection <Vaga>();
     LoadVagasCommand       = new Command <int>(ExecuteLoadVagasCommand);
     ShowDetalheVagaCommand = new Command <Vaga>(ExecuteShowDetalheVagaCommand);
 }
 public AzureUnitsService(
     IMapper <LearningAimModel, Models.LearningAimModel> mapper,
     IUnitIndexService unitIndex,
     IODataQueryService oDataQueryService,
     IAzureService azureService,
     ISearchTermFormattingService searchTermFormattingService)
     : base(mapper, unitIndex, oDataQueryService, azureService, searchTermFormattingService)
 {
 }
Exemplo n.º 19
0
 public ApiService(AzureClient azure, FsService fs, CertService certs, AppSettings settings, CustomBasicAuthProvider authProvider, LoggingService log)
 {
     _azure = azure.GetRoot();
     _fs = fs;
     _certs = certs;
     _settings = settings;
     _authProvider = authProvider;
     _log = log;
 }
Exemplo n.º 20
0
        public LocationTests()
        {
            // create empty database
            this.locationRepository = new LocationRepository(CreateEmptyDatabase());
            this.azureService       = new AzureServiceMock();
            this.locationService    = new LocationService(this.locationRepository, this.azureService);

            // create location controller
            this.locationController = new LocationController(this.locationService);
        }
 public AzureTLevelService(
     ITelemetry telemetryClient,
     IMapper <FrameworkModel, Models.FrameworkModel> mapper,
     ITLevelIndexService tlevelIndex,
     IODataQueryService oDataQueryService,
     IAzureService azureService,
     ISearchTermFormattingService searchTermFormattingService)
     : base(telemetryClient, tlevelIndex, mapper, azureService, oDataQueryService, searchTermFormattingService)
 {
 }
Exemplo n.º 22
0
 public ApiService(IAzureClient azureClient, IFileSystem fs, ICertificateService certs, ISimpleCredentialStore credentialStore, 
     LoggingService log, JobScheduler jobScheduler, SigningJobCreator jobCreator)
 {
     _azure = azureClient.GetRoot();
     _azureClient = azureClient;
     _credentialStore = credentialStore;
     _log = log;
     _jobScheduler = jobScheduler;
     _jobCreator = jobCreator;
 }
Exemplo n.º 23
0
 public ApiService(IAzureClient azureClient, IFileSystem fs, ICertificateService certs, ISimpleCredentialStore credentialStore,
                   LoggingService log, JobScheduler jobScheduler, SigningJobCreator jobCreator)
 {
     _azure           = azureClient.GetRoot();
     _azureClient     = azureClient;
     _credentialStore = credentialStore;
     _log             = log;
     _jobScheduler    = jobScheduler;
     _jobCreator      = jobCreator;
 }
Exemplo n.º 24
0
 public ModuleViewModel(IAzureService azureService,
                        ISelectionService <IoTHubInfo> ioTHubInfoSelectionService,
                        ISelectionService <IoTDeviceInfo> ioTDeviceSelectionService,
                        ISelectionService <IoTModuleIdentityInfo> ioTModuleIdentityInfoSelectionService)
 {
     this.azureService = azureService;
     this.ioTHubInfoSelectionService            = ioTHubInfoSelectionService;
     this.ioTDeviceSelectionService             = ioTDeviceSelectionService;
     this.ioTModuleIdentityInfoSelectionService = ioTModuleIdentityInfoSelectionService;
 }
Exemplo n.º 25
0
 public AzureListViewModel(
     INavigationService navigationService,
     IAzureService <T> azureService,
     Func <T, K> resourceConstructor
     )
 {
     _azureService            = azureService;
     _navigationService       = navigationService;
     this.resourceConstructor = resourceConstructor;
     Resources = new ObservableCollection <K>();
 }
Exemplo n.º 26
0
 public HubViewModel(IAzureService azureService,
                     ISelectionService <IoTHubInfo> iotHubSelectionService,
                     ISelectionService <IoTDeviceInfo> deviceInfoSelectionService,
                     ApplicationSettings settings
                     )
 {
     this.azureService               = azureService;
     this.iotHubSelectionService     = iotHubSelectionService;
     this.deviceInfoSelectionService = deviceInfoSelectionService;
     this.settings = settings;
 }
 public AzureDownloadsService(
     IAzureService azureService,
     IMapper <DownloadDetailsModel, Models.DownloadDetailsModel> mapper,
     IDownloadsIndexService downloadsIndexService,
     ISearchTermFormattingService searchTermFormattingService)
     : base(searchTermFormattingService)
 {
     _azureService          = azureService;
     _mapper                = mapper;
     _downloadsIndexService = downloadsIndexService;
 }
Exemplo n.º 28
0
        public PhotosPageViewModel()
        {
            Title            = "Photo List";
            photos           = new ObservableCollection <Photo>();
            GetPhotosCommand = new Command(
                async() => await GetPhotos(),
                () => !IsBusy);

            dialogService = ServiceManager.GetObject <IDialogService>();
            mobileService = ServiceManager.GetObject <IAzureService>();
        }
 public AzureLookupService(
     ITelemetry telemetry,
     ILookupIndexService lookupIndexService,
     IMapper <LookUpModel, Models.LookUpModel> mapper,
     IAzureService azureService)
 {
     _telemetry          = telemetry;
     _lookupIndexService = lookupIndexService;
     _mapper             = mapper;
     _azureService       = azureService;
 }
Exemplo n.º 30
0
 public UserInfoController(IUserInfoService userService,
                           IHttpContextAccessor contextAccessor,
                           IUserInfoService userInfoService,
                           IAzureService azureService,
                           IUserInfoRepository userInfoRepository)
 {
     _userService        = userService;
     _contextAccessor    = contextAccessor;
     _userInfoService    = userInfoService;
     _azureService       = azureService;
     _userInfoRepository = userInfoRepository;
 }
Exemplo n.º 31
0
        public async Task InitializeStore()
        {
            if (azureService == null)
            {
                azureService = FreshIOC.Container.Resolve <IAzureService>();
            }

            if (!azureService.IsInitialized)
            {
                await azureService.InitializeAsync().ConfigureAwait(false);
            }
        }
        public MainPageViewModel()
        {
            Title  = "My Money App";
            IsBusy = false;

            _IFacebookService = DependencyService.Get <IFacebookService>();
            _IAzureService    = DependencyService.Get <IAzureService>();


            _IAzureService.LogoutAsync();
            LoginFacebookCommand = new Command(ExecuteLoginFacebookCommand);
        }
Exemplo n.º 33
0
 public AzureLearningAimsService(
     IMapper <LearningAimModel, Models.LearningAimModel> mapper,
     ILearningDeliveryIndexService learningDeliveryIndex,
     IODataQueryService oDataQueryService,
     IAzureService azureService,
     ISearchTermFormattingService searchTermFormattingService)
     : base(searchTermFormattingService)
 {
     _mapper = mapper;
     _learningDeliveryIndex = learningDeliveryIndex;
     _oDataQueryService     = oDataQueryService;
     _azureService          = azureService;
 }
Exemplo n.º 34
0
 public AzureClient(AppSettings settings)
 {
     var account = settings.GetString("AzureAccount");
     if (account == "--SAMPLE--")
     {
         _root = AzureService.UseStorageEmulator();
     }
     else
     {
         var key = settings.GetString("AzureKey");
         _root = new AzureService(account, key);
     }
 }
Exemplo n.º 35
0
 public AzureStandardService(
     IStandardIndexService standardIndexService,
     IMapper <StandardModel, Models.StandardModel> mapper,
     IAzureService azureService,
     IODataQueryService oDataQueryService,
     ISearchTermFormattingService searchTermFormattingService)
     : base(searchTermFormattingService)
 {
     _standardIndexService = standardIndexService;
     _mapper            = mapper;
     _azureService      = azureService;
     _oDataQueryService = oDataQueryService;
 }
 public DisplayIncidentViewModel(INetworkService networkService, IUserDialogs userDialogs, IAzureService azureService)
     : base(networkService, userDialogs)
 {
     _azureService = azureService;
     IncidentDetails = new List<DisplayIncidentDetailViewModel>();
 }
Exemplo n.º 37
0
        private void GetAzureService(string account, string sas, string uri)
        {
            var azure = uri.StartsWith("http://127.0.0.1:10000") ? AzureService.CreateDeveloperSasService(account, sas) : AzureService.CreateSasService(account, sas);

            _service = azure;
        }
 public WorkerQueueViewModel(INetworkService networkService, IUserDialogs userDialogs, IAzureService azureService)
     : base(networkService, userDialogs)
 {
     _azureService = azureService;
 }
Exemplo n.º 39
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginService"/> class.
 /// </summary>
 /// <param name="loginActivity">The login activity.</param>
 /// <param name="azureServices">The Azure Service Container.</param>
 public LoginService(BaseViewController loginActivity, IAzureService azureServices)
 {
     _context = loginActivity;
     _azureServices = azureServices;
 }
Exemplo n.º 40
0
 public LoginService(Activity loginActivity, IAzureService azureServices)
 {
     _context = loginActivity;
     _azureServices = azureServices;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardViewModel"/> class.
 /// </summary>
 /// <param name="networkService">The network service.</param>
 /// <param name="userDialogs">The user dialogs.</param>
 /// <param name="mobileService">Service for accessing Azure.</param>
 public DashboardViewModel(INetworkService networkService, IUserDialogs userDialogs, IAzureService mobileService) : base(networkService, userDialogs)
 {
     _azureService = mobileService;
 }