Beispiel #1
0
 /// <summary>
 /// Create an Association Set.
 /// </summary>
 /// <param name="association">An Association discovery instance</param>
 /// <param name="name">The name you want to give to the new association set. </param>
 /// <param name="arguments">Specifies the values of the fields that you want to use.</param>
 public Task <AssociationSet> CreateAssociationSet(Association association, string name = null,
                                                   AssociationSet.Arguments arguments   = null)
 {
     arguments = arguments ?? new AssociationSet.Arguments();
     if (!string.IsNullOrWhiteSpace(name))
     {
         arguments.Name = name;
     }
     arguments.Association = association.Resource;
     return(Create <AssociationSet>(arguments));
 }
Beispiel #2
0
 /// <summary>
 /// Create an association set using supplied arguments.
 /// </summary>
 public Task <AssociationSet> CreateAssociationSet(AssociationSet.Arguments arguments)
 {
     return(Create <AssociationSet>(arguments));
 }