Пример #1
0
        //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;
        }
Пример #2
0
 private static GenericEventMetadata makeMetadata(string value, Guid guid)
 {
     GenericEventMetadata metadata = new GenericEventMetadata();
     metadata.Guid = guid;
     metadata.Value = value;
     return metadata;
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <remarks/>
 public void UpdateMetaDataAsync(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList)
 {
     this.UpdateMetaDataAsync(eventGuid, useServerTime, metadataList, null);
 }
Пример #5
0
 public void UpdateMetaData(System.Guid eventGuid, bool useServerTime, GenericEventMetadata[] metadataList)
 {
     this.Invoke("UpdateMetaData", new object[] {
                 eventGuid,
                 useServerTime,
                 metadataList});
 }
Пример #6
0
 /// <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);
 }