Esempio n. 1
0
 private void Init(Type routeType, Type routeKeyProducerType)
 {
     AttributedRouteHelper.EnsureIs <HypermediaObject>(routeType);
     AttributedRouteHelper.EnsureIsRouteKeyProducer(routeKeyProducerType);
     Name                 = AttributedRouteHelper.EscapeRouteName("GenericRouteName_HypermediaObject_" + routeType);
     RouteType            = routeType;
     RouteKeyProducerType = routeKeyProducerType;
 }
Esempio n. 2
0
        private void Init(Type routeType, Type routeKeyProducerType)
        {
            AttributedRouteHelper.EnsureIs <HypermediaActionBase>(routeType);
            AttributedRouteHelper.EnsureIsRouteKeyProducer(routeKeyProducerType);

            var buildName = "GenericRouteName_HypermediaAction" + "_" + routeType;

            buildName = AttributedRouteHelper.EscapeRouteName(buildName);

            Name                 = buildName;
            RouteType            = routeType;
            RouteKeyProducerType = routeKeyProducerType;
        }
 private void Init(Type routeType)
 {
     AttributedRouteHelper.EnsureIs <IHypermediaActionParameter>(routeType);
     Name      = AttributedRouteHelper.EscapeRouteName("GenericRouteName_ActionParameterInfo_" + routeType);
     RouteType = routeType;
 }