//private static GenericEventMetadata[] makeMetaDataList(EventData eventData) private static GenericEventMetadata[] makeMetaDataList() { GenericEventMetadata[] metadataList = new GenericEventMetadata[MetadataFieldCount]; metadataList[0] = makeMetadata("Type", _typeGuid); metadataList[1] = makeMetadata("Location", _locationGuid); metadataList[2] = makeMetadata("Card", _cardGuid); metadataList[3] = makeMetadata("CardHolder", _userGuid); metadataList[4] = makeMetadata("Description", _descriptionGuid); return metadataList; }
private static GenericEventMetadata makeMetadata(string value, Guid guid) { GenericEventMetadata metadata = new GenericEventMetadata(); metadata.Guid = guid; metadata.Value = value; return metadata; }
/// <remarks/> public void UpdateMetaDataAsync(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList, object userState) { if ((this.UpdateMetaDataOperationCompleted == null)) { this.UpdateMetaDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateMetaDataOperationCompleted); } this.InvokeAsync("UpdateMetaData", new object[] { eventGuid, useServerTime, metadataList}, this.UpdateMetaDataOperationCompleted, userState); }
/// <remarks/> public void UpdateMetaDataAsync(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList) { this.UpdateMetaDataAsync(eventGuid, useServerTime, metadataList, null); }
public void UpdateMetaData(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList) { this.Invoke("UpdateMetaData", new object[] { eventGuid, useServerTime, metadataList}); }
/// <remarks/> public System.IAsyncResult BeginUpdateMetaData(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("UpdateMetaData", new object[] { eventGuid, useServerTime, metadataList}, callback, asyncState); }