Last active
May 2, 2017 12:07
-
-
Save pacodelacruz/73b41a54465aa60f27b1669a28695ffb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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