public Endpoint EndpointForNew(Type entityType) { return(new Endpoint() { IsAuthorized = _authorization.IsAuthorizedForNew(entityType), Url = _urls.UrlForNew(entityType) }); }
public string UrlForNew(Type entityType) { return(_baseAddress + _stubRegistry.UrlForNew(entityType)); }
/// <summary> /// Finds the url for the behavior chain that would create the designated type. Matches against /// BehaviorChain.UrlCategory.Creates list /// </summary> /// <typeparam name="T"></typeparam> /// <param name="registry"></param> /// <returns></returns> public static string UrlForNew <T>(this IUrlRegistry registry) { return(registry.UrlForNew(typeof(T))); }