private void Init(Type routeType, Type routeKeyProducerType) { AttributedRouteHelper.EnsureIs <HypermediaObject>(routeType); AttributedRouteHelper.EnsureIsRouteKeyProducer(routeKeyProducerType); Name = AttributedRouteHelper.EscapeRouteName("GenericRouteName_HypermediaObject_" + routeType); RouteType = routeType; RouteKeyProducerType = routeKeyProducerType; }
private void Init(Type routeType) { AttributedRouteHelper.EnsureIs <HypermediaActionBase>(routeType); var buildName = "GenericRouteName_HypermediaAction" + "_" + routeType; buildName = AttributedRouteHelper.EscapeRouteName(buildName); Name = buildName; RouteType = routeType; }
private void Init(Type routeType) { AttributedRouteHelper.EnsureIs <IHypermediaActionParameter>(routeType); Name = AttributedRouteHelper.EscapeRouteName("GenericRouteName_ActionParameterInfo_" + routeType); RouteType = routeType; }