Reference·.NET · BIM.works_SDK.NET

BimWorksClient

Class in BIM.works_SDK.

API catalogue · BIM.works_SDK · Class

.NET#
public class BimWorksClient : IDisposable

The main object to interact with a BIM.works Repository, this object should be created by the BimWorksClientFactory

Inheritance and interfaces#

  • System.Object
  • System.IDisposable

Members#

Member Kind Description
BimWorksClient(Uri) Constructor Protected constructor, this object should be created by the BimWorksClientFactory
BimWorksClient(Uri, ClientIdentity) Constructor Protected constructor, this object should be created by the BimWorksClientFactory
Actions Field
Admin Field
Auth Field
AuthToken Field
Bim Field
Checks Field
Client Field
Close() Method Close this client. It is important to close clients that are not used anymore to avoid resource consumption on both the client and the server
ConnectWebSocket() Method
CreateAsyncTask(Request) Method
CreateException(JsonElement) Method
CreateHttpException(HttpResponseMessage) Method The exception for an HTTP answer that is not a success: the server's error when the body carries one, else the HTTP status
Dispose() Method
Execute(AsyncTask) Method Method to execute a Request. Generally end-users should not call this method directly, but should use the namespaced/typed API calls.
Execute(Request) Method Method to execute a Request. Generally end-users should not call this method directly, but should use the namespaced/typed API calls.
Fs Field
GetAddress() Method
GetAuthToken() Method
GetEndPointId() Method
GetHttpClient() Method
GetTask(Guid) Method
Gis Field
Identity Field What this client says it is on every request (X-BIMworks-Client, User-Agent) and on its WebSocket
Info Field
QueryDelegated(ISet<Guid>, BimQueryV1, ISet<string>, TimeSpan) Method
QueryWithToken(AuthToken) Method
SetAuthToken(AuthToken) Method
Tokens Field
Upload Field

BimWorksClient(Uri)#

.NET#
protected BimWorksClient(Uri address)

Protected constructor, this object should be created by the BimWorksClientFactory

Parameters#

Name Type Description
address System.Uri

BimWorksClient(Uri, ClientIdentity)#

.NET#
protected BimWorksClient(Uri address, ClientIdentity identity)

Protected constructor, this object should be created by the BimWorksClientFactory

Parameters#

Name Type Description
address System.Uri
identity ClientIdentity

Actions#

.NET#
public readonly Actions Actions

Admin#

.NET#
public readonly Admin Admin

Auth#

.NET#
public readonly Auth Auth

AuthToken#

.NET#
public AuthToken AuthToken

Bim#

.NET#
public readonly Bim Bim

Checks#

.NET#
public readonly Checks Checks

Client#

.NET#
public HttpClient Client

Close()#

.NET#
public void Close()

Close this client. It is important to close clients that are not used anymore to avoid resource consumption on both the client and the server

ConnectWebSocket()#

.NET#
public void ConnectWebSocket()

CreateAsyncTask(Request)#

.NET#
public AsyncTask CreateAsyncTask(Request request)

Parameters#

Name Type Description
request Request

CreateException(JsonElement)#

.NET#
public Exception CreateException(JsonElement error)

Parameters#

Name Type Description
error System.Text.Json.JsonElement

CreateHttpException(HttpResponseMessage)#

.NET#
public Exception CreateHttpException(HttpResponseMessage response)

The exception for an HTTP answer that is not a success: the server's error when the body carries one, else the HTTP status

Parameters#

Name Type Description
response System.Net.Http.HttpResponseMessage

Dispose()#

.NET#
public virtual void Dispose()

Execute(AsyncTask)#

.NET#
public AsyncTask Execute(AsyncTask asyncTask)

Method to execute a Request. Generally end-users should not call this method directly, but should use the namespaced/typed API calls.

Parameters#

Name Type Description
asyncTask AsyncTask

Execute(Request)#

.NET#
public Response Execute(Request request)

Method to execute a Request. Generally end-users should not call this method directly, but should use the namespaced/typed API calls.

Parameters#

Name Type Description
request Request

Fs#

.NET#
public readonly Fs Fs

GetAddress()#

.NET#
public Uri GetAddress()

GetAuthToken()#

.NET#
public AuthToken GetAuthToken()

GetEndPointId()#

.NET#
public string GetEndPointId()

GetHttpClient()#

.NET#
public HttpClient GetHttpClient()

GetTask(Guid)#

.NET#
public AsyncTask GetTask(Guid uuid)

Parameters#

Name Type Description
uuid System.Guid

Gis#

.NET#
public readonly Gis Gis

Identity#

.NET#
public readonly ClientIdentity Identity

What this client says it is on every request (X-BIMworks-Client, User-Agent) and on its WebSocket

Info#

.NET#
public readonly Info Info

QueryDelegated(ISet<Guid>, BimQueryV1, ISet<string>, TimeSpan)#

.NET#
public AuthToken QueryDelegated(ISet<Guid> versionIds, BimQueryV1 bimQuery, ISet<string> features, TimeSpan timeSpan)

Parameters#

Name Type Description
versionIds System.Collections.Generic.ISet{System.Guid}
bimQuery BimQueryV1
features System.Collections.Generic.ISet{System.String}
timeSpan System.TimeSpan

QueryWithToken(AuthToken)#

.NET#
public JsonElement QueryWithToken(AuthToken token)

Parameters#

Name Type Description
token AuthToken

SetAuthToken(AuthToken)#

.NET#
public void SetAuthToken(AuthToken authToken)

Parameters#

Name Type Description
authToken AuthToken

Tokens#

.NET#
public readonly Tokens Tokens

Upload#

.NET#
public readonly Upload Upload

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