Reference·.NET · BIM.works_SDK.NET

BimWorksClientFactory

Class in BIM.works_SDK.

API catalogue · BIM.works_SDK · Class

.NET#
public class BimWorksClientFactory : IDisposable

The factory is used to create BimWorksClient objects. The factory object is supposed to be a long-lived object. Ideally you only create one factory for each target BIM.works Repository

Inheritance and interfaces#

  • System.Object
  • System.IDisposable

Members#

Member Kind Description
BimWorksClientFactory(Uri) Constructor
CreateAnonymousClient() Method Create a new BimWorksClient with anonymous authentication. The set of allowed API calls is very limited for anonymous users.
CreateClientWithApiToken(string) Method Create a new BimWorksClient with an API Token
CreateClientWithAuth(AuthToken) Method Create a new BimWorksClient with a given AuthToken. This is not used often on server systems.
CreateClientWithUsernamePassword(string, string) Method Create a new BimWorksClient with username/password authentication. Generally it is recommended to only use this for development/testing purposes. In most cas…
Dispose() Method
ExcludePlatformInfo() Method Leaves the .NET version and the operating system out of what the clients created afterwards send. The SDK's own name, version and build are always sent: supp…
SetApplication(string, string) Method Names your application, sent with every request of the clients created afterwards (the app of the X-BIMworks-Client header and the end of the User-Agent). It…

BimWorksClientFactory(Uri)#

.NET#
public BimWorksClientFactory(Uri address)

Parameters#

Name Type Description
address System.Uri

CreateAnonymousClient()#

.NET#
public BimWorksClient CreateAnonymousClient()

Create a new BimWorksClient with anonymous authentication. The set of allowed API calls is very limited for anonymous users.

CreateClientWithApiToken(string)#

.NET#
public BimWorksClient CreateClientWithApiToken(string apiToken)

Create a new BimWorksClient with an API Token

Parameters#

Name Type Description
apiToken System.String

CreateClientWithAuth(AuthToken)#

.NET#
public BimWorksClient CreateClientWithAuth(AuthToken authToken)

Create a new BimWorksClient with a given AuthToken. This is not used often on server systems.

Parameters#

Name Type Description
authToken AuthToken

CreateClientWithUsernamePassword(string, string)#

.NET#
public BimWorksClient CreateClientWithUsernamePassword(string username, string password)

Create a new BimWorksClient with username/password authentication. Generally it is recommended to only use this for development/testing purposes. In most cases using an API Token is better.

Parameters#

Name Type Description
username System.String
password System.String

Dispose()#

.NET#
public virtual void Dispose()

ExcludePlatformInfo()#

.NET#
public BimWorksClientFactory ExcludePlatformInfo()

Leaves the .NET version and the operating system out of what the clients created afterwards send. The SDK's own name, version and build are always sent: support needs them

SetApplication(string, string)#

.NET#
public BimWorksClientFactory SetApplication(string name, string version)

Names your application, sent with every request of the clients created afterwards (the app of the X-BIMworks-Client header and the end of the User-Agent). It tells BIM.works support which of your integrations made a call. Letters, digits and . _ + -; anything else becomes _

Parameters#

Name Type Description
name System.String
version System.String

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