示例#1
0
 private void Fill(ResultSet resultSet)
 {
     if (resultSet.Results == null)
     {
         return;
     }
     foreach (var result in resultSet.Results)
     {
         SdkMessage sdkMessage;
         if (result.SdkMessageId != Guid.Empty && !this.MessageCollection.ContainsKey(result.SdkMessageId))
         {
             sdkMessage = new SdkMessage(result.SdkMessageId, result.Name, result.IsPrivate, result.CustomizationLevel);
             this.MessageCollection.Add(result.SdkMessageId, sdkMessage);
         }
         sdkMessage = this.MessageCollection[result.SdkMessageId];
         sdkMessage.Fill(result);
     }
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="message">SDK message</param>
 /// <param name="id">Message pair id</param>
 /// <param name="messageNamespace">Message namespace</param>
 public SdkMessagePair(SdkMessage message, Guid id, string messageNamespace)
 {
     this.Message          = message;
     this.Id               = id;
     this.MessageNamespace = messageNamespace;
 }