/// <summary> /// Retrieves the sites configured by <see cref="RouteToSites"/>. /// </summary> public static string[] GetSitesRoutingTo(this SendOptions options) { if (options.GetHeaders().TryGetValue(Headers.DestinationSites, out string siteKeys)) { return(siteKeys.Split(new[] { "," }, StringSplitOptions.None)); } return(new string[0]); }