OpenActivity<T>(in T, in OpenActivityOptions)
Opens an activity that cannot be suspended (e.g. does not wait any await
).
Declaration
public LogActivity<T> OpenActivity<T>(in T description, in OpenActivityOptions options = default) where T : IMessage
Parameters
Type | Name | Description |
---|---|---|
T | description | The activity description, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class. |
OpenActivityOptions | options | Options. |
Returns
Type | Description |
---|---|
LogActivity<T> | A LogActivity<TActivityDescription> representing the new activity. |
Type Parameters
Name | Description |
---|---|
T |