コード例 #1
0
ファイル: RequestCollect.cs プロジェクト: solind/modSIC
        public void SetResultError()
        {
            var collectResultFactory = new CollectResultFactory();
            var collectResult        = collectResultFactory.CreateCollectResult(CollectStatus.Error, null);

            this.Result = collectResult;
        }
コード例 #2
0
ファイル: RequestCollect.cs プロジェクト: solind/modSIC
        /// <summary>
        /// Build the SystemCharacteristics for this collectRequest.
        /// It is necessary because the SystemCharacteristics, in this case,
        /// must be a merge of results of the all probeExecutions.
        /// The systemCharacteristics, must be have all the object collected by all probes.
        /// </summary>
        private void BuildSystemCharacteristics(IDocumentSession session)
        {
            var systemCharacteristics = this.GetCompleteSystemCharacteristics(session);
            var collectResultFactory  = new CollectResultFactory();

            if (systemCharacteristics != null)
            {
                var systemCharacteristicsInXML = systemCharacteristics.GetSystemCharacteristicsXML();
                var result = collectResultFactory.CreateCollectResult(CollectStatus.Partial, systemCharacteristicsInXML);

                //result.CollectRequestId = Oid;
                //if (Results.Count() > 0)
                //    Results.Remove(Result);

                Result = result;
                session.SaveChanges();
            }
        }
コード例 #3
0
ファイル: RequestCollect.cs プロジェクト: jonaslsl/modSIC
        /// <summary>
        /// Build the SystemCharacteristics for this collectRequest.
        /// It is necessary because the SystemCharacteristics, in this case,
        /// must be a merge of results of the all probeExecutions.
        /// The systemCharacteristics, must be have all the object collected by all probes.
        /// </summary>
        private void BuildSystemCharacteristics(IDocumentSession session)
        {
            var systemCharacteristics = this.GetCompleteSystemCharacteristics(session);
            var collectResultFactory = new CollectResultFactory();

            if (systemCharacteristics != null)
            {               
                var systemCharacteristicsInXML = systemCharacteristics.GetSystemCharacteristicsXML();
                var result = collectResultFactory.CreateCollectResult(CollectStatus.Partial, systemCharacteristicsInXML);

                //result.CollectRequestId = Oid;
                //if (Results.Count() > 0)
                //    Results.Remove(Result);

                Result = result;
                session.SaveChanges();
            }           
        }
コード例 #4
0
ファイル: RequestCollect.cs プロジェクト: jonaslsl/modSIC
 public void SetResultError()
 {
     var collectResultFactory = new CollectResultFactory();
     var collectResult = collectResultFactory.CreateCollectResult(CollectStatus.Error, null);
     this.Result = collectResult;
 }