コード例 #1
0
        public async Task <ResultMultiple <AppAudit> > QueryAppAuditsAsync(IDictionary <string, object> filter,
                                                                           AppAudit appAudit = null, bool doCache = false, bool throwIfError = true)
        {
            AppAudit theAudit = appAudit == null ? _editAudit : appAudit;

            ResultMultiple <AppAudit> result = await ResultMultipleUI <AppAudit> .WaitForObjectsAsync(
                true, theAudit, new CachedHttpRequest <AppAudit, ResultMultiple <AppAudit> >(
                    Backend.QueryAsyncListAsync), true);

            if (result.Code >= 0)
            {
                _audits = result.Data.Payload;
                OnPropertyChanged("AppAudits");
            }

            return(result);
        }
コード例 #2
0
        public DeploymentViewModel(BackendService <UserT> backend, App app)
            : base(backend, app)
        {
            _deployments = new ObservableCollection <Deployment>();
            _forests     = new ObservableCollection <Forest>();
            _forestByTag = new Dictionary <string, Forest>();

            _editDeployment         = new Deployment();
            _editDeployment.OwnedBy = app;
            app.Deployment          = _editDeployment;

            _editBackup         = new AppBackup();
            _editBackup.OwnedBy = _editDeployment;
            _backups            = new ObservableCollection <AppBackup>();

            _editAudit         = new AppAudit();
            _editAudit.OwnedBy = _editDeployment;
            _audits            = new ObservableCollection <AppAudit>();
        }