Skip to content

PgBackgroundWorkerAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Exports a synchronous static worker entry taking one native-sized unsigned argument and returning void.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class PgBackgroundWorkerAttribute : Attribute

The native entry installs safe signal handlers and binds backend capabilities before invoking managed code. Arguments carry values, never process-local addresses. Use shared memory for data exchanged with another process.

Inheritance: object, Attribute

public PgBackgroundWorkerAttribute()

Gets or sets the exported native symbol, defaulting to the managed method’s name.

public string? EntryPoint { get; set; }

Value: string