Skip to content

Unconditional Delivery Listeners

The where clause argument in the addCreateListener method is optional. When it is not provided, the real-time database will deliver any new object created in the database's table:

var orderEventHandler = Backendless.Data.Of( "Order" ).RT();

orderEventHandler.AddCreateListener( createdOrder =>
{
  Console.WriteLine( $"new Order object has been created. Object ID - {createdOrder[ "objectId" ]}" );
} );
var orderEventHandler = Backendless.Data.Of<Order>().RT();

orderEventHandler.AddCreateListener( createdOrder =>
{
  Console.WriteLine( $"new Order object has been created. Object ID - {createdOrder.ObjectId}");
} );