예제 #1
0
 /// <summary>
 /// Get all the versions for a particular interaction.
 /// </summary>
 ///
 /// <param name="type">- the type name of the interaction</param>
 /// <returns>the versions</returns>
 public virtual ICollection <String> GetSupportedVersionsForInteraction(String type)
 {
     ILOG.J2CsMapping.Collections.Generics.ISet <String> versions = new ILOG.J2CsMapping.Collections.Generics.SortedSet <System.String>();
     /* foreach */
     foreach (MessageDefinitionService service  in  this.services)
     {
         ICollection <String> supportedVersions = service
                                                  .GetSupportedVersionsForInteraction(type);
         ILOG.J2CsMapping.Collections.Generics.Collections.AddAll(supportedVersions, versions);
     }
     return(versions);
 }
예제 #2
0
        /// <summary>Get all the versions known by this service.</summary>
        /// <remarks>Get all the versions known by this service.</remarks>
        /// <param name="type">- the interaction type name</param>
        /// <returns>the versions</returns>
        public virtual ICollection <string> GetSupportedVersionsForInteraction(string type)
        {
            ILOG.J2CsMapping.Collections.Generics.ISet <String> versions = new ILOG.J2CsMapping.Collections.Generics.SortedSet <System.String>();
            ICollection <String> allSupportedVersions = SupportedVersions;

            foreach (String version in allSupportedVersions)
            {
                if (GetInteraction(version, type) != null)
                {
                    ILOG.J2CsMapping.Collections.Generics.Collections.Add(versions, version);
                }
            }
            return(versions);
        }