PrivMX DOCS
API Reference/PrivMX Endpoint C# Extra/Threads

ThreadApiAsyncExtensions

Static Methods

CreateThreadAsync

Params

threadApi

this IThreadApi

contextId

string

users

List<UserWithPubKey>

managers

List<UserWithPubKey>

publicMeta

byte[]

privateMeta

byte[]

containerPolicy

ContainerPolicy

token

CancellationToken

static ValueTask<string> CreateThreadAsync(
this IThreadApi threadApi,
string contextId,
List<UserWithPubKey> users,
List<UserWithPubKey> managers,
byte[] publicMeta,
byte[] privateMeta,
ContainerPolicy containerPolicy,
CancellationToken token = default
)

Returns

ValueTask<string> ·

UpdateThreadAsync

Params

threadApi

this IThreadApi

threadId

string

users

List<UserWithPubKey>

managers

List<UserWithPubKey>

publicMeta

byte[]

privateMeta

byte[]

version

long

force

bool

forceGenerateNewKey

bool

containerPolicy

ContainerPolicy?

token

CancellationToken

static ValueTask UpdateThreadAsync(
this IThreadApi threadApi,
string threadId,
List<UserWithPubKey> users,
List<UserWithPubKey> managers,
byte[] publicMeta,
byte[] privateMeta,
long version,
bool force,
bool forceGenerateNewKey,
ContainerPolicy? containerPolicy = null,
CancellationToken token = default
)

Returns

ValueTask ·

DeleteThreadAsync

Params

threadApi

this IThreadApi

threadId

string

token

CancellationToken

static ValueTask DeleteThreadAsync(
this IThreadApi threadApi,
string threadId,
CancellationToken token = default
)

Returns

ValueTask ·

GetThreadAsync

Params

threadApi

this IThreadApi

threadId

string

token

CancellationToken

static ValueTask<Thread> GetThreadAsync(
this IThreadApi threadApi,
string threadId,
CancellationToken token = default
)

Returns

ValueTask<Thread> ·

ListThreadsAsync

Params

api

this IThreadApi

contextId

string

pagingQuery

PagingQuery

token

CancellationToken

static ValueTask<PagingList<Thread>> ListThreadsAsync(
this IThreadApi api,
string contextId,
PagingQuery pagingQuery,
CancellationToken token = default
)

Returns

ValueTask<PagingList<Thread>> ·

GetMessageAsync

Params

api

this IThreadApi

messageId

string

token

CancellationToken

static ValueTask<Message> GetMessageAsync(
this IThreadApi api,
string messageId,
CancellationToken token = default
)

Returns

ValueTask<Message> ·

ListMessagesAsync

Params

api

this IThreadApi

threadId

string

pagingQuery

PagingQuery

token

CancellationToken

static ValueTask<PagingList<Message>> ListMessagesAsync(
this IThreadApi api,
string threadId,
PagingQuery pagingQuery,
CancellationToken token = default
)

Returns

ValueTask<PagingList<Message>> ·

SendMessageAsync

Params

api

this IThreadApi

threadId

string

publicMeta

byte[]

privateMeta

byte[]

data

byte[]

token

CancellationToken

static ValueTask<string> SendMessageAsync(
this IThreadApi api,
string threadId,
byte[] publicMeta,
byte[] privateMeta,
byte[] data,
CancellationToken token = default
)

Returns

ValueTask<string> ·

UpdateMessageAsync

Params

api

this IThreadApi

messageId

string

publicMeta

byte[]

privateMeta

byte[]

data

byte[]

token

CancellationToken

static ValueTask UpdateMessageAsync(
this IThreadApi api,
string messageId,
byte[] publicMeta,
byte[] privateMeta,
byte[] data,
CancellationToken token = default
)

Returns

ValueTask ·

DeleteMessageAsync

Params

api

this IThreadApi

messageId

string

token

CancellationToken

static ValueTask DeleteMessageAsync(
this IThreadApi api,
string messageId,
CancellationToken token = default
)

Returns

ValueTask ·

SubscribeForThreadEventsAsync

Params

api

this IThreadApi

token

CancellationToken

static ValueTask SubscribeForThreadEventsAsync(
this IThreadApi api,
CancellationToken token = default
)

Returns

ValueTask ·

UnsubscribeFromThreadEventsAsync

Params

api

this IThreadApi

token

CancellationToken

static ValueTask UnsubscribeFromThreadEventsAsync(
this IThreadApi api,
CancellationToken token = default
)

Returns

ValueTask ·

SubscribeForMessageEventsAsync

Params

api

this IThreadApi

threadId

string

token

CancellationToken

static ValueTask SubscribeForMessageEventsAsync(
this IThreadApi api,
string threadId,
CancellationToken token = default
)

Returns

ValueTask ·

UnsubscribeFromMessageEventsAsync

Params

api

this IThreadApi

threadId

string

token

CancellationToken

static ValueTask UnsubscribeFromMessageEventsAsync(
this IThreadApi api,
string threadId,
CancellationToken token = default
)

Returns

ValueTask ·

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.

PrivMX Endpoint C# v2.2

This package is not up to date with the core documentation. Some of the features you've seen described in other parts of the documentation might not be mentioned here. Those changes do not influence compatibility, however