public UriMtHelper(HttpRequestMessage req, ActionTypeContextSurface actionTypeContext) : this(req) { action = actionTypeContext.ActionContext.Action; spec = actionTypeContext.OwningSpecification; cachedId = ""; cachedType = spec.DomainTypeName(); }
public UriMtHelper(HttpRequestMessage req, ActionContextSurface actionContext) : this(req) { action = actionContext.Action; nakedObject = actionContext.Target; spec = nakedObject.Specification; LinkObjectId oid = OidStrategyHolder.OidStrategy.GetOid(nakedObject); cachedId = oid.InstanceId; cachedType = oid.DomainType; }
public UriMtHelper(HttpRequestMessage req, ParameterTypeContextSurface parameterTypeContext) : this(req) { action = parameterTypeContext.Action; spec = parameterTypeContext.OwningSpecification; param = parameterTypeContext.Parameter; cachedId = ""; cachedType = spec.DomainTypeName(); }
public static bool IsIdempotent(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <bool>(ScalarProperty.IsIdempotent)); }
public static bool IsQueryOnly(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <bool>(ScalarProperty.IsQueryOnly)); }
public static string Description(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <string>(ScalarProperty.Description)); }
public static string Name(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <string>(ScalarProperty.Name)); }
public static IDictionary <string, object> ExtensionData(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <IDictionary <string, object> >(ScalarProperty.ExtensionData)); }
public static int MemberOrder(this INakedObjectActionSurface nakedObjectActionSurface) { return(nakedObjectActionSurface.GetScalarProperty <int>(ScalarProperty.MemberOrder)); }