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
Type | Name | Description |
---|---|---|
OneStream.Shared.Common.SessionInfo | si | The 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
Type | Name | Description |
---|---|---|
OneStream.Shared.Common.SessionInfo | si | The SessionInfo object |
System.String | baseUri | The base address to communicate with |
System.Boolean | useShortTimeout | A 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