You can publish events by using SDK for C# to call the required API operation.

SDK for C# provides the following API operation.