Skip to main content

Class XBRApiUtilities

Namespace: Workspace.XBR.Xperiflow.SubApis

Assembly: Xperiflow.dll

Declaration
public class XBRApiUtilities

Methods

GetHttpClientManager(SessionInfo)

Retrieves the singleton instance of HttpClientManager.

Declaration
public IHttpClientManager GetHttpClientManager(SessionInfo si)
Returns

Workspace.XBR.Xperiflow.Utilities.Http.IHttpClientManager

An [Workspace.XBR.Xperiflow.Utilities.Http.IHttpClientManager](../Xperiflow.Utilities.Http/IHttpClientManager.md)

Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe SessionInfo object

GetHttpClient(SessionInfo, string, bool)

Get an instance of HttpClient for the specified baseUri.

Declaration
public HttpClient GetHttpClient(SessionInfo si, string baseUri, bool useShortTimeout = true)
Returns

System.Net.Http.HttpClient

An instance of System.Net.Http.HttpClient

Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe SessionInfo object
System.StringbaseUriThe base address to communicate with
System.BooleanuseShortTimeoutA bool to determine whether to use a short (80s) timeout or long (2h) timeout

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?