public static bool HasServiceReference <TRequestKey>(this TRequestKey requestKey, IHasInstanceKey service, string suffix = null) where TRequestKey : IRequestKey { return(requestKey.HasServiceReference(CreateServiceReference(service, suffix))); }
private static string CreateServiceReference(IHasInstanceKey service, string suffix) { return(service.InstanceKey + (suffix ?? string.Empty)); }