コード例 #1
0
        public RegistreringType1 Read(CprBroker.Schemas.PersonIdentifier uuid, LaesInputType input, Func <string, Guid> cpr2uuidFunc, out QualityLevel?ql)
        {
            ql = QualityLevel.Cpr;
            IndividualResponseType response = null;

            response = ExtractManager.GetPerson(uuid.CprNumber);

            if (response != null)
            {
                UuidCache cache = new UuidCache();
                cache.FillCache(response.RelatedPnrs);

                return(response.ToRegistreringType1(cache.GetUuid));
            }
            return(null);
        }
コード例 #2
0
        public RegistreringType1 Read(CprBroker.Schemas.PersonIdentifier uuid, LaesInputType input, Func <string, Guid> cpr2uuidFunc, out QualityLevel?ql)
        {
            ql = QualityLevel.Cpr;

            if (IPartPerCallDataProviderHelper.CanCallOnline(uuid.CprNumber))
            {
                IndividualRequestType  request  = new IndividualRequestType(true, DataType.DefinedByTask, decimal.Parse(uuid.CprNumber));
                IndividualResponseType response = this.GetResponse(request);

                UuidCache cache = new UuidCache();
                cache.FillCache(response.RelatedPnrs);

                return(response.ToRegistreringType1(cpr2uuidFunc));
            }
            else
            {
                return(null);
            }
        }