Class Connection
public class Connection : IConnection
- Inheritance
-
Connection
- Implements
- Inherited Members
Fields
ptr
public readonly IntPtr ptr
Field Value
Methods
Connect(byte[], string, string)
Connects to the PrivMX Bridge server.
public static Connection Connect(byte[] userPrivKey, string solutionId, string bridgeUrl)
Parameters
userPrivKeybyte[]User's private key.
solutionIdstringID of the Solution.
bridgeUrlstringPrivMX 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
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
pagingQueryPagingQueryList query parameters.
Returns
- PagingList<Context>
List of contexts.