Skip to content

Commit

Permalink
Add EventGrid binding samples (Azure#36).
Browse files Browse the repository at this point in the history
  • Loading branch information
Junyi Yi committed Jul 24, 2018
1 parent 41d47c9 commit 8bea461
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
* <li>Any POJO type</li>
* </ul>
*
* <p>The following example shows an event grid trigger which prints out the object:</p>
* <p>The following example shows a Java function that prints out an event:</p>
*
* <pre>{@literal @}FunctionName("egprocessor")
* public void eventGridProcessor(
* {@literal @}EventGridTrigger(name = "obj") MyModel obj,
* <pre>{@literal @}FunctionName("eventGridMonitor")
* public void logEvent(
* {@literal @}EventGridTrigger(name = "event") String content,
* final ExecutionContext context
* ) {
* context.getLogger().info(obj.toString());
* context.getLogger().info(content);
* }</pre>
*
* @since 1.0.0
Expand Down

0 comments on commit 8bea461

Please sign in to comment.