Пример #1
0
 public Endpoint EndpointForNew(Type entityType)
 {
     return(new Endpoint()
     {
         IsAuthorized = _authorization.IsAuthorizedForNew(entityType),
         Url = _urls.UrlForNew(entityType)
     });
 }
Пример #2
0
 public string UrlForNew(Type entityType)
 {
     return(_baseAddress + _stubRegistry.UrlForNew(entityType));
 }
Пример #3
0
 /// <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)));
 }