From 0f76559325a9bbee512dd246143d6d3b6d148a2b Mon Sep 17 00:00:00 2001 From: Junyi Yi Date: Tue, 24 Jul 2018 11:46:17 -0700 Subject: [PATCH] Revert "Add EventGrid binding samples (#36)." This reverts commit 8bea461fa365c5dc0636205403eae0fadf3e4d61. --- .../azure/functions/annotation/EventGridTrigger.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java b/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java index ebed066..5df798c 100644 --- a/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java +++ b/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java @@ -21,14 +21,14 @@ import java.lang.annotation.Target; *
  • Any POJO type
  • * * - *

    The following example shows a Java function that prints out an event:

    + *

    The following example shows an event grid trigger which prints out the object:

    * - *
    {@literal @}FunctionName("eventGridMonitor")
    - * public void logEvent(
    - *    {@literal @}EventGridTrigger(name = "event") String content,
    + * 
    {@literal @}FunctionName("egprocessor")
    + * public void eventGridProcessor(
    + *    {@literal @}EventGridTrigger(name = "obj") MyModel obj,
      *     final ExecutionContext context
      * ) {
    - *     context.getLogger().info(content);
    + *     context.getLogger().info(obj.toString());
      * }
    * * @since 1.0.0