Beispiel #1
0
        /// <summary>Registered the specified device.</summary>
        /// <param name="parameters">Registration parameters</param>
        /// <param name="userId">User ID</param>
        /// <returns>PMSE response object</returns>
        public PMSEResponse RegisterProtectedDevice(Parameters parameters, string userId)
        {
            string       logMethodName = "PMSEDriver.RegisterProtectedDevice(Parameters parameters)";
            PMSEResponse response      = new PMSEResponse();

            try
            {
                // Begin Log transaction
                this.Logger.Log(TraceEventType.Information, LoggingMessageId.DriverGenericMessage, "Enter " + logMethodName);

                string   wsdba          = Utils.RegistrationIdOrg;
                DateTime settingsDate   = this.GetDateSequenceFromSettingsTable();
                int      sequenceNumber = this.GetSequenceFromSettingsTable();
                string   regSeqNumber   = sequenceNumber.ToString("0000000");
                RegistrationDisposition regDisposition = new RegistrationDisposition();
                regDisposition.RegDate = settingsDate.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'", DateTimeFormatInfo.InvariantInfo);
                regDisposition.RegId   = string.Format("{0:yyMMdd}", settingsDate) + Utils.RegistrationIdOrg + regSeqNumber;
                regDisposition.Action  = 1;
                Check.IsNotNull <ParametersBase>(parameters, Constants.ParameterNameParameters);
                List <string> errorList;

                if (this.PMSEValidator.IsProtectedDeviceValid(parameters, out errorList))
                {
                    string registrationTableName = Utils.GetRegionalTableName(Constants.LPAuxRegistrationTable);

                    LPAuxRegistration lowPowerAuxReg = new LPAuxRegistration()
                    {
                        PartitionKey      = wsdba,
                        RowKey            = regDisposition.RegId,
                        AuxTvSpectrum     = JsonSerialization.SerializeObject(parameters.TvSpectrum),
                        AuxContact        = JsonSerialization.SerializeObject(parameters.Contact),
                        AuxRegDisposition = JsonSerialization.SerializeObject(regDisposition),
                        AuxEvent          = JsonSerialization.SerializeObject(parameters.Event),
                        AuxRegistrant     = JsonSerialization.SerializeObject(parameters.Registrant),
                        Disposition       = regDisposition,
                        Licensed          = false,
                        UserId            = userId,
                        VenueName         = parameters.Venue,
                        WSDBA             = wsdba
                    };

                    if (parameters.PointsArea != null && parameters.QuadrilateralArea == null)
                    {
                        lowPowerAuxReg.AuxPointsArea = JsonSerialization.SerializeObject(parameters.PointsArea);
                    }
                    else
                    {
                        lowPowerAuxReg.AuxQuadPoints = JsonSerialization.SerializeObject(parameters.QuadrilateralArea);
                    }

                    this.PMSEDalc.RegisterDevice(lowPowerAuxReg);

                    response = new PMSEResponse
                    {
                        Result = new Result
                        {
                            Message = "Lp-Aux Unlicensed Device registration is successful.",
                        }
                    };

                    this.Logger.Log(TraceEventType.Information, LoggingMessageId.DriverGenericMessage, "Exit " + logMethodName);
                    return(response);
                }
                else
                {
                    StringBuilder builder = new StringBuilder();
                    foreach (string value in errorList)
                    {
                        builder.Append(value);
                        builder.Append(",");
                    }

                    response            = ErrorHelper.CreatePMSEErrorResponse(Constants.LPAuxRegistration, Constants.ErrorLPAUXDataMissing);
                    response.Error.Data = response.Error.Data + ":" + builder.ToString();
                    ////response.Result = new Result { Message = builder.ToString(), };
                }
            }
            catch (Exception e)
            {
                // Log transaction failure
                this.Logger.Log(TraceEventType.Error, LoggingMessageId.DriverGenericMessage, e.ToString());
                response = ErrorHelper.CreatePMSEErrorResponse(Constants.LPAuxRegistration, e.ToString());
            }

            this.Logger.Log(TraceEventType.Information, LoggingMessageId.DriverGenericMessage, "Exit " + logMethodName);
            return(response);
        }
Beispiel #2
0
        /// <summary>
        /// constructs the TV Receive Site Registration Entity
        /// </summary>
        /// <param name="tvreceiveSiteRegistration"> TV ReceiveSiteRegistration to be constructed.</param>
        /// <param name="xmlNode">XML Registration Node</param>
        /// <param name="namespaceManager">namespace manager for xml name spaces</param>
        public void BuildEntity(TVReceiveSiteRegistration tvreceiveSiteRegistration, XmlNode xmlNode, XmlNamespaceManager namespaceManager)
        {
            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin RegistrationEntityBuilder.BuildEntity for TV Receive Site Registration");

            // Common Serialization
            XmlNode node = null;

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin Build TV Receive Site Registration Entity");

            // build Registration disposition object
            RegistrationDisposition regDisposition = new RegistrationDisposition();

            Utils.DeserializeXMLToObject(ref regDisposition, xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:RegistrationDisposition", namespaceManager).OuterXml);
            tvreceiveSiteRegistration.Disposition = regDisposition;

            // eamil
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcContact/vcard:properties/vcard:email", namespaceManager);
            if (node != null)
            {
                tvreceiveSiteRegistration.Contact.Email = this.BuildEamils(xmlNode.SelectNodes("ren:TV_Receive_Site_Registration/ren:tvrcContact/vcard:properties/vcard:email", namespaceManager));
            }

            // address
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcContact/vcard:properties/vcard:adr", namespaceManager);
            if (node != null)
            {
                tvreceiveSiteRegistration.Contact.Address = this.BuildAddressEntity(node, namespaceManager);
            }

            // Registrant's org
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcRegistrant/vcard:properties/vcard:org", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Organization org = new Entities.Versitcard.Organization();
                Utils.DeserializeXMLToObject(ref org, node.OuterXml);
                tvreceiveSiteRegistration.Registrant.Org = org;
            }

            // Telephones
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcContact/vcard:properties/vcard:tel", namespaceManager);
            if (node != null)
            {
                tvreceiveSiteRegistration.Contact.Telephone = this.BuildTelephones(xmlNode.SelectNodes("ren:TV_Receive_Site_Registration/ren:tvrcContact/vcard:properties/vcard:tel", namespaceManager));
            }

            // Title
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:presentationTime/vcard:title", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Title title = new Entities.Versitcard.Title();
                Utils.DeserializeXMLToObject(ref title, node.OuterXml);
                tvreceiveSiteRegistration.Contact.Title = title;
            }

            // TV Receive Site serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcRecvLocation", namespaceManager);
            if (node != null)
            {
                tvreceiveSiteRegistration.ReceiveLocation.Latitude  = Convert.ToDouble(node.SelectSingleNode("//ren:locLatitude", namespaceManager).InnerText);
                tvreceiveSiteRegistration.ReceiveLocation.Longitude = Convert.ToDouble(node.SelectSingleNode("//ren:locLongitude", namespaceManager).InnerText);
                tvreceiveSiteRegistration.ReceiveLocation.Datum     = node.SelectSingleNode("//ren:locDatum", namespaceManager).InnerText;
                RadiationCenter radiationCenter = new RadiationCenter();
                Utils.DeserializeXMLToObject(ref radiationCenter, node.SelectSingleNode("//ren:locRadiationCenter", namespaceManager).OuterXml);
                tvreceiveSiteRegistration.ReceiveLocation.RadiationCenter = radiationCenter;
            }

            // TV Receive Site Channel serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcXmitChannel", namespaceManager);
            if (node != null)
            {
                if (node.SelectSingleNode("//ren:ustChannel", namespaceManager) != null)
                {
                    tvreceiveSiteRegistration.TransmitChannel.Channel = Convert.ToInt32(node.SelectSingleNode("//ren:ustChannel", namespaceManager).InnerText);
                }

                tvreceiveSiteRegistration.TransmitChannel.CallSign = node.SelectSingleNode("//ren:ustCallSign", namespaceManager).InnerText;
            }

            // TV Receive Site transmit location serialiation
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcXmitLocation", namespaceManager);
            if (node != null)
            {
                tvreceiveSiteRegistration.TransmitLocation.Latitude  = Convert.ToDouble(node.SelectSingleNode("//ren:locLatitude", namespaceManager).InnerText);
                tvreceiveSiteRegistration.TransmitLocation.Longitude = Convert.ToDouble(node.SelectSingleNode("//ren:locLongitude", namespaceManager).InnerText);
                tvreceiveSiteRegistration.TransmitLocation.Datum     = node.SelectSingleNode("//ren:locDatum", namespaceManager).InnerText;
                RadiationCenter radiationCenter = new RadiationCenter();
                Utils.DeserializeXMLToObject(ref radiationCenter, node.SelectSingleNode("//ren:locRadiationCenter", namespaceManager).OuterXml);
                tvreceiveSiteRegistration.TransmitLocation.RadiationCenter = radiationCenter;
            }

            // TV Receive Site receive Call Sign serialiation
            node = null;
            node = xmlNode.SelectSingleNode("ren:TV_Receive_Site_Registration/ren:tvrcRecvCallSign", namespaceManager);
            if (node != null)
            {
                // Event Deserializing
                tvreceiveSiteRegistration.ReceiveCallSign.CallSign = node.SelectSingleNode("//ren:ustCallSign", namespaceManager).InnerText;
            }

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "End Build TV Receive Site Registration Entity");
        }
Beispiel #3
0
        /// <summary>
        /// constructs the Fixed TVBD Registration Entity
        /// </summary>
        /// <param name="fixedTvbdRegEntity">FixedTVBDRegistration to be constructed.</param>
        /// <param name="xmlNode">XML Node of the registration</param>
        /// <param name="namespaceManager">namespace manager for xml name spaces</param>
        public void BuildEntity(FixedTVBDRegistration fixedTvbdRegEntity, XmlNode xmlNode, XmlNamespaceManager namespaceManager)
        {
            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin RegistrationEntityBuilder.BuildEntity for Fixed TVBD Registration");

            // Common Serialization
            XmlNode node = null;

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin Build Fixed TVBD Registration Entity");

            // build Registration disposition object
            RegistrationDisposition regDisposition = new RegistrationDisposition();

            Utils.DeserializeXMLToObject(ref regDisposition, xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:RegistrationDisposition", namespaceManager).OuterXml);
            fixedTvbdRegEntity.Disposition = regDisposition;

            // eamil
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdContact/vcard:properties/vcard:email", namespaceManager);
            if (node != null)
            {
                fixedTvbdRegEntity.Contact.Email = this.BuildEamils(xmlNode.SelectNodes("ren:Fixed_TVBD_Registration/ren:tvbdContact/vcard:properties/vcard:email", namespaceManager));
            }

            // address
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdContact/vcard:properties/vcard:adr", namespaceManager);
            if (node != null)
            {
                fixedTvbdRegEntity.Contact.Address = this.BuildAddressEntity(node, namespaceManager);
            }

            // Registrant's org
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdRegistrant/vcard:properties/vcard:org", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Organization org = new Entities.Versitcard.Organization();
                Utils.DeserializeXMLToObject(ref org, node.OuterXml);
                fixedTvbdRegEntity.Registrant.Org = org;
            }

            // Telephones
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tbasContact/vcard:properties/vcard:tel", namespaceManager);
            if (node != null)
            {
                fixedTvbdRegEntity.Contact.Telephone = this.BuildTelephones(xmlNode.SelectNodes("ren:Fixed_TVBD_Registration/ren:tbasContact/vcard:properties/vcard:tel", namespaceManager));
            }

            // Time zone
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tbasEvent/ren:presentationTime/ren:tzname", namespaceManager);
            if (node != null)
            {
                fixedTvbdRegEntity.Contact.TimeZone = node.InnerText;
            }

            // Title
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:presentationTime/vcard:title", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Title title = new Entities.Versitcard.Title();
                Utils.DeserializeXMLToObject(ref title, node.OuterXml);
                fixedTvbdRegEntity.Contact.Title = title;
            }

            // Fixed TVBD location serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdRegLocation", namespaceManager);
            if (node != null)
            {
                fixedTvbdRegEntity.Loc.Latitude  = Convert.ToDouble(node.SelectSingleNode("//ren:locLatitude", namespaceManager).InnerText);
                fixedTvbdRegEntity.Loc.Longitude = Convert.ToDouble(node.SelectSingleNode("//ren:locLongitude", namespaceManager).InnerText);
                fixedTvbdRegEntity.Loc.Datum     = node.SelectSingleNode("//ren:locDatum", namespaceManager).InnerText;
                RadiationCenter radiationCenter = new RadiationCenter();
                Utils.DeserializeXMLToObject(ref radiationCenter, node.SelectSingleNode("//ren:locRadiationCenter", namespaceManager).OuterXml);
                fixedTvbdRegEntity.Loc.RadiationCenter = radiationCenter;
            }

            // Fixed TVBD Device ID serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdRegDeviceId", namespaceManager);
            if (node != null)
            {
                DeviceId device = new DeviceId();
                Utils.DeserializeXMLToObject(ref device, xmlNode.SelectSingleNode("ren:Fixed_TVBD_Registration/ren:tvbdRegDeviceId", namespaceManager).OuterXml);
                fixedTvbdRegEntity.DeviceId = device;
            }

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "End RegistrationEntityBuilder.BuildEntity for Fixed TVBD Registration");
        }
Beispiel #4
0
        /// <summary>
        /// constructs the LPAuxRegistration entity
        /// </summary>
        /// <param name="lpauxRegEntity">LPAuxRegistration Entity to be constructed.</param>
        /// <param name="xmlNode">XML Node</param>
        /// <param name="namespaceManager"> Name Space Manager which has all xml name spaces</param>
        public void BuildEntity(LPAuxRegistration lpauxRegEntity, XmlNode xmlNode, XmlNamespaceManager namespaceManager)
        {
            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin RegistrationEntityBuilder.BuildEntity for LP-Aux Registration");
            XmlNode node = null;

            // Call Sign
            this.BuildLPAuxTvsSpectrum(ref lpauxRegEntity, xmlNode, namespaceManager);

            // Event Deserializing
            lpauxRegEntity.Event = this.BuildRegistrationEvent(xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxEvent", namespaceManager), namespaceManager);

            // LP-Aux Licence value
            if (xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:Licensed", namespaceManager) != null)
            {
                lpauxRegEntity.Licensed = Convert.ToBoolean(Convert.ToInt16(xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:Licensed", namespaceManager).InnerText));
            }

            // Build Quad array
            if (xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxOperationalArea/ren:lpauxQuadrilateralArea", namespaceManager) != null)
            {
                lpauxRegEntity.QuadrilateralArea = this.BuildLPAuxQuadArea(xmlNode.SelectNodes("ren:LP-Aux_Registration/ren:lpauxOperationalArea/ren:lpauxQuadrilateralArea", namespaceManager), namespaceManager);
            }

            // Build Point Area
            if (xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxOperationalArea/ren:lpauxPointArea", namespaceManager) != null)
            {
                lpauxRegEntity.PointsArea = this.BuildLPAuxPointsArea(xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxOperationalArea/ren:lpauxPointArea", namespaceManager), namespaceManager);
            }

            // build Registration disposition object
            RegistrationDisposition regDisposition = new RegistrationDisposition();

            Utils.DeserializeXMLToObject(ref regDisposition, xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:RegistrationDisposition", namespaceManager).OuterXml);
            lpauxRegEntity.Disposition = regDisposition;

            // eamil
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxContact/vcard:properties/vcard:email", namespaceManager);
            if (node != null)
            {
                lpauxRegEntity.Contact.Email = this.BuildEamils(xmlNode.SelectNodes("ren:LP-Aux_Registration/ren:lpauxContact/vcard:properties/vcard:email", namespaceManager));
            }

            // address
            node = null;
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxContact/vcard:properties/vcard:adr", namespaceManager);
            if (node != null)
            {
                lpauxRegEntity.Contact.Address = this.BuildAddressEntity(node, namespaceManager);
            }

            // Registrant's org
            node = null;
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxRegistrant/vcard:properties/vcard:org", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Organization org = new Entities.Versitcard.Organization();
                Utils.DeserializeXMLToObject(ref org, node.OuterXml);
                lpauxRegEntity.Registrant.Org = org;
            }

            // Telephones
            node = null;
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxContact/vcard:properties/vcard:tel", namespaceManager);
            if (node != null)
            {
                lpauxRegEntity.Contact.Telephone = this.BuildTelephones(xmlNode.SelectNodes("ren:LP-Aux_Registration/ren:lpauxContact/vcard:properties/vcard:tel", namespaceManager));
            }

            // Time zone
            node = null;
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxEvent/ren:presentationTime/ren:tzname", namespaceManager);
            if (node != null)
            {
                lpauxRegEntity.Contact.TimeZone = node.InnerText;
            }

            // Title
            node = null;
            node = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:presentationTime/vcard:title", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Title title = new Entities.Versitcard.Title();
                Utils.DeserializeXMLToObject(ref title, node.OuterXml);
                lpauxRegEntity.Contact.Title = title;
            }

            // Venue Name
            if (xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxVenueName", namespaceManager) != null)
            {
                lpauxRegEntity.VenueName = xmlNode.SelectSingleNode("ren:LP-Aux_Registration/ren:lpauxVenueName", namespaceManager).InnerText;
            }

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "End RegistrationEntityBuilder.BuildEntity for LP-Aux Registration");
        }
Beispiel #5
0
        /// <summary>
        /// constructs the TempBASRegistration entity
        /// </summary>
        /// <param name="tempBasRegEntity">TempBASRegistration to be constructed.</param>
        /// <param name="xmlNode">XML Node of the Registration</param>
        /// <param name="namespaceManager">namespace manager for xml name spaces</param>
        public void BuildEntity(TempBASRegistration tempBasRegEntity, XmlNode xmlNode, XmlNamespaceManager namespaceManager)
        {
            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin RegistrationEntityBuilder.BuildEntity for Temp Bas Registration");

            // Common Serialization
            XmlNode node = null;

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "Begin Build Temp Bas Registration Entity");

            // build Registration disposition object
            RegistrationDisposition regDisposition = new RegistrationDisposition();

            Utils.DeserializeXMLToObject(ref regDisposition, xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:RegistrationDisposition", namespaceManager).OuterXml);
            tempBasRegEntity.Disposition = regDisposition;

            // eamil
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasContact/vcard:properties/vcard:email", namespaceManager);
            if (node != null)
            {
                tempBasRegEntity.Contact.Email = this.BuildEamils(xmlNode.SelectNodes("ren:Temp_BAS_Registration/ren:tbasContact/vcard:properties/vcard:email", namespaceManager));
            }

            // address
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasContact/vcard:properties/vcard:adr", namespaceManager);
            if (node != null)
            {
                tempBasRegEntity.Contact.Address = this.BuildAddressEntity(node, namespaceManager);
            }

            // Registrant's org
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasRegistrant/vcard:properties/vcard:org", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Organization org = new Entities.Versitcard.Organization();
                Utils.DeserializeXMLToObject(ref org, node.OuterXml);
                tempBasRegEntity.Registrant.Org = org;
            }

            // Telephones
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasContact/vcard:properties/vcard:tel", namespaceManager);
            if (node != null)
            {
                tempBasRegEntity.Contact.Telephone = this.BuildTelephones(xmlNode.SelectNodes("ren:Temp_BAS_Registration/ren:tbasContact/vcard:properties/vcard:tel", namespaceManager));
            }

            // Time zone
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasEvent/ren:presentationTime/ren:tzname", namespaceManager);
            if (node != null)
            {
                tempBasRegEntity.Contact.TimeZone = node.InnerText;
            }

            // Title
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:presentationTime/vcard:title", namespaceManager);
            if (node != null)
            {
                Entities.Versitcard.Title title = new Entities.Versitcard.Title();
                Utils.DeserializeXMLToObject(ref title, node.OuterXml);
                tempBasRegEntity.Contact.Title = title;
            }

            // Temp Bas serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasRecvLocation", namespaceManager);
            if (node != null)
            {
                tempBasRegEntity.RecvLocation.Latitude  = Convert.ToDouble(node.SelectSingleNode("//ren:locLatitude", namespaceManager).InnerText);
                tempBasRegEntity.RecvLocation.Longitude = Convert.ToDouble(node.SelectSingleNode("//ren:locLongitude", namespaceManager).InnerText);
                tempBasRegEntity.RecvLocation.Datum     = node.SelectSingleNode("//ren:locDatum", namespaceManager).InnerText;
                RadiationCenter radiationCenter = new RadiationCenter();
                Utils.DeserializeXMLToObject(ref radiationCenter, node.SelectSingleNode("//ren:locRadiationCenter", namespaceManager).OuterXml);
                tempBasRegEntity.RecvLocation.RadiationCenter = radiationCenter;
            }

            // Temp Bas Channel serialization
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasChannel", namespaceManager);
            if (node != null)
            {
                if (node.SelectSingleNode("//ren:ustChannel", namespaceManager) != null)
                {
                    tempBasRegEntity.Channel.Channel = Convert.ToInt32(node.SelectSingleNode("//ren:ustChannel", namespaceManager).InnerText);
                }

                tempBasRegEntity.Channel.CallSign = node.SelectSingleNode("//ren:ustCallSign", namespaceManager).InnerText;
            }

            // Temp Bas transmit location serialiation
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasXmitLocation", namespaceManager);
            if (node != null)
            {
                XElement element      = XElement.Parse(node.OuterXml);
                var      curnamespace = element.GetDefaultNamespace();
                tempBasRegEntity.TransmitLocation.Latitude  = element.Descendants(XName.Get("locLatitude", curnamespace.NamespaceName)).FirstOrDefault().Value.ToDouble();
                tempBasRegEntity.TransmitLocation.Longitude = element.Descendants(XName.Get("locLongitude", curnamespace.NamespaceName)).FirstOrDefault().Value.ToDouble();
                tempBasRegEntity.TransmitLocation.Datum     = element.Descendants(XName.Get("locDatum", curnamespace.NamespaceName)).FirstOrDefault().Value;
                RadiationCenter radiationCenter = new RadiationCenter();
                Utils.DeserializeXMLToObject(ref radiationCenter, node.SelectSingleNode("//ren:locRadiationCenter", namespaceManager).OuterXml);
                tempBasRegEntity.TransmitLocation.RadiationCenter = radiationCenter;
            }

            // Temp Bas transmit location serialiation
            node = null;
            node = xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasEvent", namespaceManager);
            if (node != null)
            {
                // Event Deserializing
                tempBasRegEntity.Event = this.BuildRegistrationEvent(xmlNode.SelectSingleNode("ren:Temp_BAS_Registration/ren:tbasEvent", namespaceManager), namespaceManager);
            }

            this.syncLogger.Log(TraceEventType.Information, LoggingMessageId.DBSyncPollerGenericMessage, "End Build Temp Bas Registration Entity");
        }