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