public UnifiedResponse.AssetStatus GetAssetStatus(string AssetId) { UnifiedResponse.AssetStatus r = null; TableOperation retrieveOperation = TableOperation.Retrieve <UnifiedResponse.TAssetStatus>("Flags", AssetId); TableResult retrievedResult = _AssetStatus.Execute(retrieveOperation); if (retrievedResult.Result != null) { r = ((UnifiedResponse.TAssetStatus)retrievedResult.Result).GetAssetStatus(); } return(r); }
private void UpdateAssetStatus(UnifiedResponse.AssetStatus theAsset) { TableOperation InsertOrReplace = TableOperation.InsertOrReplace(new UnifiedResponse.TAssetStatus(theAsset)); _AssetStatus.Execute(InsertOrReplace); }
public TAssetStatus(AssetStatus data) { this.PartitionKey = "Flags"; this.RowKey = data.AssetId; this.State = data.State.ToString(); }