• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AdditionalData
      • AdrParametersItemChoiceEnum
      • AnniversaryItemChoiceEnum
      • BdayItemChoiceEnum
      • ByRefType
      • CallerInfo
      • CommentSubType
      • CommentType
      • DeviceInfoType
      • DeviceInfoTypeUniqueDeviceID
      • EmergencyCallDataValueType
      • JCard
      • KeyItemChoiceEnum
      • LocationInfo
      • ProvidedBy
      • ProvidedByType
      • ProviderInfoType
      • RelatedParametersItemChoiceEnum
      • SchemaConsts
      • ServiceInfoType
      • SubcontractorPriorityType
      • SubscriberInfoType
      • TelContactInfo
      • TelItemChoiceEnum
      • VcardTypeTzItemChoiceEnum
      • adr
      • adrParameters
      • adrParametersGeo
      • adrParametersTZ
      • altid
      • anniversary
      • anniversaryParameters
      • bday
      • bdayParameters
      • caladruri
      • caladruriParameters
      • calscale
      • calscaleText
      • caluri
      • caluriParameters
      • categories
      • categoriesParameters
      • clientpidmap
      • email
      • emailParameters
      • fburl
      • fburlParameters
      • fn
      • fnParameters
      • gender
      • group
      • impp
      • imppParameters
      • key
      • keyParameters
      • kind
      • label
      • lang
      • langParameters
      • language
      • logo
      • logoParameters
      • mediatype
      • member
      • memberParameters
      • n
      • nParameters
      • nickname
      • nicknameParameters
      • note
      • noteParameters
      • org
      • orgParameters
      • photo
      • photoParameters
      • pid
      • pref
      • prodid
      • related
      • relatedParameters
      • relatedParametersText
      • role
      • roleParameters
      • sex
      • sortas
      • sound
      • soundParameters
      • source
      • sourceParameters
      • tel
      • telParameters
      • title
      • titleParameters
      • type
      • typeText
      • uid
      • url
      • urlParameters
      • valuetimestamp
      • vcardType
      • vcardTypeGeo
      • vcardTypeGeoParameters
      • vcardTypeTZ
      • vcardTypeTZParameters
      • vcards
    • AgencyLocator
      • LocatorRecord
      • LocatorRecordUri
      • LocatorRecordUriArray
      • NameSet
      • NameSetArray
    • BadActor
      • BadActorContents
    • CommonAlertingProtocol
      • alert
      • alertInfo
      • alertInfoArea
      • alertInfoAreaGeocode
      • alertInfoCategory
      • alertInfoCertainty
      • alertInfoEventCode
      • alertInfoParameter
      • alertInfoResource
      • alertInfoResponseType
      • alertInfoSeverity
      • alertInfoUrgency
      • alertMsgType
      • alertScope
      • alertStatus
    • ConferenceEvent
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • DiscrepancyReporting
      • AdrDiscrepancyReport
      • AdrProblemEnum
      • BcfDiscrepancyReport
      • BcfProblemEnum
      • CallTakerDiscrepancyReport
      • CallTransferDiscrepancyReport
      • DRTypeEnum
      • DiscrepancyReport
      • DiscrepancyReportResponse
      • DiscrepancyResolution
      • DrResolutionEnum
      • DrServerityEnum
      • EsrpDiscrepancyReport
      • EsrpProblemEnum
      • GisDiscrepancyReport
      • GisProblemEnum
      • ImrDiscrepancyReport
      • ImrProblemEnum
      • LisDiscrepancyReport
      • LisProblemEnum
      • LogSignatureCertificateDiscrepancyReport
      • LogSignatureProblemEnum
      • LoggingDiscrepancyReport
      • LoggingProblemEnum
      • LostDiscrepancyReport
      • LostProblemEnum
      • LostQueryTypeEnum
      • McsDiscrepancyReport
      • NetworkDiscrepancyReport
      • NetworkProblemEnum
      • OriginatingServiceDiscrepancyReport
      • OriginatingServiceProblemEnum
      • PermissionsDiscrepancyReport
      • PermissionsProblemEnum
      • PolicyDiscrepancyReport
      • PolicyProblemEnum
      • PolicyStoreDiscrepancyReport
      • PolicyStoreProblemEnum
      • SipDiscrepancyReport
      • SipProblemEnum
      • StatusUpdate
      • TestCallDiscrepancyReport
      • TestCallProblemEnum
    • ECall
      • ackType
      • ackTypeActionResult
      • capabilitiesType
      • controlType
      • requestType
      • requestTypeText
    • Geocode
      • GeoCodeCivicAddress
      • GeodeticData
    • Held
      • HeldConsts
      • HeldDevice
      • HeldError
      • HeldErrorMessage
      • HeldIp
      • LocationRequest
      • LocationResponse
      • LocationType
      • LocationUriSet
    • HttpUtils
      • AsyncHttpRequestor
      • HttpMethodEnum
      • HttpResults
    • I3SubNot
      • AbandonedCall
      • DequeueRegistrationRequestBody
      • DequeueRegistrationResponseBody
      • ElementState
      • ElementStateType
      • EsrpNotify
      • GapOverlap
      • QueueState
      • QueueStateType
      • SecurityPostureType
      • ServiceState
      • ServiceStateType
      • ServiceType
      • SubNotConsts
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • I3V3.LogEvents
      • AdditionalAgencyLogEvent
      • AdditionalDataQueryLogEvent
      • AdditionalDataResponseLogEvent
      • AgencyIdArray
      • AgentStateChangeLogEvent
      • AliLocationQueryLogEvent
      • AliLocationResponseLogEvent
      • CallEndLogEvent
      • CallIdArray
      • CallLogEvent
      • CallProcessLogEvent
      • CallSignalingMessageLogEvent
      • CallStartLogEvent
      • CallStateChangeLogEvent
      • CallTransferLogEvent
      • DiscrepancyReportLogEvent
      • EidoDeniedLogEvent
      • EidoDereferenceFactoryQueryLogEvent
      • EidoDereferenceFactoryQueryResponseLogEvent
      • EidoLogEvent
      • EidoTransmissionErrorLogEvent
      • ElementStateChangeLogEvent
      • GatewayCallLogEvent
      • HookflashLogEvent
      • I3LogEventContent
      • IncidentClearLogEvent
      • IncidentIdArray
      • IncidentLinkLogEvent
      • IncidentMergeLogEvent
      • IncidentReopenLogEvent
      • IncidentSplitLogEvent
      • IncidentUnLinkLogEvent
      • IncidentUnMergeLogEvent
      • KeepAliveFailureLogEvent
      • LegacyDigitsLogEvent
      • LocationQueryLogEvent
      • LocationResponseLogEvent
      • LogEvent
      • LogEventContainer
      • LogEventContainerArray
      • LogEventIdArray
      • LostQueryLogEvent
      • LostResponseLogEvent
      • MalformedMessageLogEvent
      • MediaEndLogEvent
      • MediaStartLogEvent
      • MessageLogEvent
      • NonRtpMediaMessageLogEvent
      • PolicyChangeLogEvent
      • QueueStateChangeLogEvent
      • RecCallEndLogEvent
      • RecCallStartLogEvent
      • RecMediaEndLogEvent
      • RecMediaStartLogEvent
      • RecordingFailedLogEvent
      • RouteLogEvent
      • RouteRuleMsgLogEvent
      • ServiceStateChangeLogEvent
      • SipRecMetadataLogEvent
      • SubParamsType
      • SubscribeLogEvent
      • SubscriptionRequestedLogEvent
      • SubscriptionRequestedResponseLogEvent
      • SubscriptionTerminatedLogEvent
      • SubscriptionTerminatedResponseLogEvent
      • VersionsLogEvent
      • WebSocketEstablishedLogEvent
      • WebSocketTerminatedLogEvent
    • I3V3.LoggingHelpers
      • I3LogEventClient
      • I3LogEventClientMgr
      • I3LoggingErrorDelegate
      • I3LoggingUtils
      • LoggingServerStatusChangedDeletate
    • Lost
      • DisplayName
      • FindService
      • FindServiceResponse
      • GetServiceBoundary
      • GetServiceBoundaryResponse
      • ListServices
      • ListServicesByLocation
      • ListServicesByLocationResponse
      • ListServicesResponse
      • LocationUsed
      • LostErrors
      • LostHelper
      • LostMsgBase
      • LostPath
      • LostRedirect
      • LostWarnings
      • Mapping
      • PathVia
      • ServiceBoundaryReference
    • Msag
      • MsagData
      • PidfLoData
    • Ng911CertUtils
      • CertUtils
      • DistinguishedNameParams
      • KeyUsageParams
      • Ng911SanParams
      • Roles
    • Ng911Common
      • ConditionTypeEnum
      • I3JoseHeader
      • I3Jws
      • VersionItemType
      • VersionServiceInfoType
      • VersionsArrayType
    • Ng911Lib.Utilities
      • ContentTypes
      • JsonHelper
      • PurposeTypes
      • TimeUtils
      • Utf8StringWriter
      • XmlHelper
    • NgWebSockets
      • NgWebSocketClient
      • WebSocketMessageReceived
    • Pidf
      • ArcBand
      • Axis
      • Circle
      • CivicAddress
      • Confidence
      • Device
      • DirectionType
      • DynamicType
      • Ellipse
      • Ellipsoid
      • Exterior
      • GeoPriv
      • LinearRing
      • Orientation
      • PdfEnum
      • Person
      • Point
      • Polygon
      • Position
      • Presence
      • Prism
      • PrismBase
      • Radius
      • Sphere
      • Status
      • Tuple
      • locInfoType
      • locPolicyType
    • PolicyRouting
      • ActionBase
      • AdditionalDataCondition
      • BodyPartCondition
      • BusyAction
      • CallSourceCondition
      • CallSuspicionCondition
      • CallingNumberVerificationStatusCondition
      • CapCondition
      • ConditionBase
      • IncomingQueueCondition
      • InvokePolicyAction
      • LocationCondition
      • LogAction
      • LostServiceUrnCondition
      • MimeBodyCondition
      • NormalHextHopCondition
      • NotifyAction
      • OpCode
      • Pref
      • PrrLocation
      • QueueStateCondition
      • RequestUriCondition
      • RouteAction
      • Rule
      • SdpOfferCondition
      • SecurityPostureCondition
      • ServiceStateCondition
      • SipHeaderCondition
      • TimePeriodCondition
    • PolicyStore
      • Policy
      • PolicyArray
      • PolicyEnum
      • PolicyEnumArray
      • PolicyTypeEnum
    • SipRecMetaData
      • dataMode
      • group
      • name
      • nameID
      • participant
      • participantsessionassoc
      • participantsessionassocParam
      • participantstreamassoc
      • reason
      • recording
      • requestsnapshot
      • session
      • sessionrecordingassoc
      • stream
    • TestCall
      • ConditionType
      • PrrTest
      • SendCallRequests
    • Veds
      • ActivityLocationAssociationType
      • ActivityType
      • AddressType
      • AirbagCategoryCodeSimpleType
      • AirbagCategoryCodeType
      • AirbagType
      • AngleMeasureType
      • AssociationType
      • AutomatedCrashNotificationType
      • BinaryType
      • CommercialCarrierUSDOTNumberType
      • ComplexObjectType
      • ContactActivityType
      • ContactInformationType
      • ContactInformationType1
      • ConveyanceType
      • CrashPersonRoleCodeSimpleType
      • CrashPersonRoleCodeType
      • CrashPersonType
      • CrashPersonType1
      • CrashType
      • CrashType1
      • CrashVehicleType
      • CrossStreetType
      • DateType
      • DatumCodeSimpleType
      • DatumCodeType
      • DocumentType
      • DriverLicenseBaseType
      • DriverLicenseType
      • DrivingIncidentType
      • FullTelephoneNumberType
      • IdentificationType
      • ImageType
      • IncidentType
      • InternationalTelephoneNumberType
      • ItemType
      • ItemsChoiceType
      • LatitudeCoordinateType
      • LatitudeDegreeType
      • LocationType
      • LongitudeCoordinateType
      • LongitudeDegreeType
      • MeasurePointValueType
      • MeasureType
      • NotificationDestinationOrganizationType
      • NotificationDeviceTypeCodeSimpleType
      • NotificationDeviceTypeCodeType
      • NotificationOriginatingOrganizationType
      • OrganizationContactInformationAssociationType
      • OrganizationType
      • PersonContactInformationAssociationType
      • PersonLanguageType
      • PersonNameTextType
      • PersonNameType
      • PersonType
      • PersonType1
      • PowerSourceCategoryCodeSimpleType
      • PowerSourceCategoryCodeType
      • ProperNameTextType
      • ReferenceType
      • SEXCodeSimpleType
      • SEXCodeType
      • SpeedMeasureType
      • StreetType
      • StructuredAddressType
      • TangibleItemType
      • TelephoneNumberType
      • TextType
      • TwoDimensionalGeographicCoordinateType
      • VEDSNotificationOriginatorCodeSimpleType
      • VEDSNotificationOriginatorCodeType
      • VehicleAutonomousCapabilityCodeSimpleType
      • VehicleAutonomousCapabilityCodeType
      • VehicleBodyCategoryCodeSimpleType
      • VehicleBodyCategoryCodeType
      • VehicleCrashPulseType
      • VehicleFinalRestOrientationCodeSimpleType
      • VehicleFinalRestOrientationCodeType
      • VehiclePropulsionStorageCodeSimpleType
      • VehiclePropulsionStorageCodeType
      • VehicleSeatLocationCategoryCodeSimpleType
      • VehicleSeatLocationCategoryCodeType
      • VehicleSeatType
      • VehicleType
      • WeightMeasureType
      • anyURI
      • boolean
      • date
      • dateTime
      • gYear
      • nonNegativeInteger
      • string

    Class AsyncHttpRequestor

    Class for performing asynchronous HTTP requests. This class may be used to perform GET, POST, PUT and DELETE requests. It may also be used when a persistent connection to a server is desired.

    Inheritance
    object
    AsyncHttpRequestor
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: HttpUtils
    Assembly: Ng911Lib.dll
    Syntax
    public class AsyncHttpRequestor : IDisposable

    Constructors

    | Edit this page View Source

    AsyncHttpRequestor(X509Certificate2, int, string)

    Constructs a new AsyncHttpRequestor object. Once this constructor is called, the object is ready to start making requests.

    Declaration
    public AsyncHttpRequestor(X509Certificate2 clientCertificate, int TimeoutMs = 1000, string strAcceptHeader = null)
    Parameters
    Type Name Description
    X509Certificate2 clientCertificate

    Client X.509 certificate. May be null in applications where mutual authentication is not required.

    int TimeoutMs

    Sets the request timeout in milliseconds. Defaults to 1000 ms.

    string strAcceptHeader

    Value to add to the default headers. For example: application/json. May contain a comma separated list of MIME types. May be null.

    Properties

    | Edit this page View Source

    AcceptAllServerCertificates

    If set to true, the all server certificates will be accepted. If false the server authentication is tested. The default is true.

    Declaration
    public bool AcceptAllServerCertificates { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Dispose()

    Disposes the HttpClient object used by this class. Do not call any other methods or properties after calling this method.

    Declaration
    public void Dispose()
    | Edit this page View Source

    DoRequestAsync(HttpMethodEnum, string, string, string, bool)

    Sends the HTTP request asynchronously and waits for a response.

    Declaration
    public Task<HttpResults> DoRequestAsync(HttpMethodEnum Method, string strUrl, string strContentType, string strContents, bool ExpectRespBody)
    Parameters
    Type Name Description
    HttpMethodEnum Method

    HTTP method to use.

    string strUrl

    URL of the request.

    string strContentType

    Specifies the Content-Type header to send if the request message will contain a body. For example: application/json. May be null if strContents is null.

    string strContents

    Contains the request body. May be null if there is no body to send.

    bool ExpectRespBody

    If true, then a response containing a message body is expected and this method will read it. If false, then the response is not expected to contain a message body.

    Returns
    Type Description
    Task<HttpResults>

    Returns a HttpResults object. This method always returns a value, even if an exception occurred.

    | Edit this page View Source

    GetStringResponseAsync(string)

    Sends a GET request and returns a string response asynchronously.

    Declaration
    public Task<string> GetStringResponseAsync(string strUrl)
    Parameters
    Type Name Description
    string strUrl

    URL to request.

    Returns
    Type Description
    Task<string>

    Returns a string from the response body if the server returned a 200 OK response and a string in the response body. Returns null if an error occurred.

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX