Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacodelacruz/73b41a54465aa60f27b1669a28695ffb to your computer and use it in GitHub Desktop.
Save pacodelacruz/73b41a54465aa60f27b1669a28695ffb to your computer and use it in GitHub Desktop.
using System;
using Microsoft.WindowsAzure.Storage.Table;
namespace PacodelaCruz.PollingConsumer.FunctionApp
{
/// <summary>
/// Class to handle the entities on the Azure Table Storage called ‘PollingWatermark'.
/// If you want to learn more about using Azure Storage Tables with C# have a look at this documentation
/// https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-tables
/// </summary>
public class PollingWatermarkEntity : TableEntity
{
public PollingWatermarkEntity() { }
/// <summary>
/// We are storing the SourceSystem in the PartitionKey and the Entity in the RowKey
/// </summary>
/// <param name="sourceSystem"></param>
/// <param name="entity"></param>
public PollingWatermarkEntity(string sourceSystem, string entity)
{
this.PartitionKey = sourceSystem;
this.RowKey = entity;
}
public DateTime Watermark { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment