BimWorksClient
Class in BIM.works_SDK.
API catalogue · BIM.works_SDK · Class
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)#
Protected constructor, this object should be created by the BimWorksClientFactory
Parameters#
| Name |
Type |
Description |
address |
System.Uri |
|
BimWorksClient(Uri, ClientIdentity)#
Protected constructor, this object should be created by the BimWorksClientFactory
Parameters#
Actions#
Admin#
Auth#
AuthToken#
Bim#
Checks#
Client#
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()#
public void ConnectWebSocket()
CreateAsyncTask(Request)#
Parameters#
| Name |
Type |
Description |
request |
Request |
|
CreateException(JsonElement)#
public Exception CreateException(JsonElement error)
Parameters#
| Name |
Type |
Description |
error |
System.Text.Json.JsonElement |
|
CreateHttpException(HttpResponseMessage)#
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()#
public virtual void Dispose()
Execute(AsyncTask)#
Method to execute a Request. Generally end-users should not call this method directly, but should use the namespaced/typed API calls.
Parameters#
Execute(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 |
|
GetAddress()#
GetAuthToken()#
GetEndPointId()#
public string GetEndPointId()
GetHttpClient()#
public HttpClient GetHttpClient()
GetTask(Guid)#
Parameters#
| Name |
Type |
Description |
uuid |
System.Guid |
|
Gis#
Identity#
What this client says it is on every request (X-BIMworks-Client, User-Agent) and on its WebSocket
Info#
QueryDelegated(ISet<Guid>, BimQueryV1, ISet<string>, TimeSpan)#
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)#
public JsonElement QueryWithToken(AuthToken token)
Parameters#
SetAuthToken(AuthToken)#
public void SetAuthToken(AuthToken authToken)
Parameters#
Tokens#
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