/// <summary> /// Toes the subscriptor key. /// </summary> /// <param name="subscriptionType">Type of the subscription.</param> /// <returns></returns> public static SubscriptionKey ToSubscriptorKey(this SubscriptionType subscriptionType) { var subscriptionKey = new SubscriptionKey { Key = subscriptionType.Key, ParentKeys = subscriptionType.ParentKeys.Select(pK => ToSubscriptorKey(pK)).ToList() }; return(subscriptionKey); }
/// <summary> /// Toes the type of the subscriptor. /// </summary> /// <param name="subscriptionKey">The subscription key.</param> /// <returns></returns> public static SubscriptionType ToSubscriptorType(this SubscriptionKey subscriptionKey) { var subscriptionType = new SubscriptionType { Key = subscriptionKey.Key, ParentKeys = subscriptionKey.ParentKeys.Select(pK => pK.ToSubscriptorType()).ToList() }; return(subscriptionType); }
/// <summary> /// Toes the type of the subscriptor. /// </summary> /// <param name="subscriptionKey">The subscription key.</param> /// <returns></returns> public static SubscriptionType ToSubscriptorType(this SubscriptionKey subscriptionKey) { var subscriptionType = new SubscriptionType { Key = subscriptionKey.Key, ParentKeys = subscriptionKey.ParentKeys.Select(pK => pK.ToSubscriptorType()).ToList() }; return subscriptionType; }