PrivMX DOCS
API Reference/PrivMX Endpoint C#/Core

Connection

Static Methods

Connect

Connects to the PrivMX Bridge server.

Params

userPrivKey

string

User's private key.

solutionId

string

ID of the Solution.

bridgeUrl

string

PrivMX Bridge URL.

static Connection Connect(
string userPrivKey,
string solutionId,
string bridgeUrl
)

Returns

Connection · Created and connected instance of the Connection.

ConnectPublic

Connects to the PrivMX Bridge server as a guest user.

Params

solutionId

string

ID of the Solution.

bridgeUrl

string

PrivMX Bridge URL.

static Connection ConnectPublic(
string solutionId,
string bridgeUrl
)

Returns

Connection · Created and connected instance of the Connection.

Methods

GetConnectionId

Gets the ID of the current connection.

long GetConnectionId()

Returns

long · ID of the connection.

ListContexts

Gets a list of Contexts available for the user.

Params

pagingQuery

PagingQuery

List query parameters.

PagingList<Context> ListContexts(
PagingQuery pagingQuery
)

Returns

PagingList<Context> · List of contexts.

Disconnect

Disconnects from the PrivMX Bridge.

void Disconnect()

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.