Table of Contents

Class Connection

Namespace
PrivMX.Endpoint.Core
Assembly
PrivMX.Endpoint.dll
public class Connection : IConnection
Inheritance
Connection
Implements
Inherited Members

Fields

ptr

public readonly IntPtr ptr

Field Value

IntPtr

Methods

Connect(byte[], string, string)

Connects to the PrivMX Bridge server.

public static Connection Connect(byte[] userPrivKey, string solutionId, string bridgeUrl)

Parameters

userPrivKey byte[]

User's private key.

solutionId string

ID of the Solution.

bridgeUrl string

PrivMX Bridge URL.

Returns

Connection

Created and connected instance of the Connection.

ConnectPublic(string, string)

Connects to the PrivMX Bridge server as a guest user.

public static Connection ConnectPublic(string solutionId, string bridgeUrl)

Parameters

solutionId string

ID of the Solution.

bridgeUrl string

PrivMX Bridge URL.

Returns

Connection

Created and connected instance of the Connection.

Disconnect()

Disconnects from the PrivMX Bridge.

public void Disconnect()

~Connection()

protected ~Connection()

GetConnectionId()

Gets the ID of the current connection.

public long GetConnectionId()

Returns

long

ID of the connection.

ListContexts(PagingQuery)

Gets a list of Contexts available for the user.

public PagingList<Context> ListContexts(PagingQuery pagingQuery)

Parameters

pagingQuery PagingQuery

List query parameters.

Returns

PagingList<Context>

List of contexts.