Exemple #1
0
 public UriMtHelper(HttpRequestMessage req, ActionTypeContextSurface actionTypeContext)
     : this(req) {
     action = actionTypeContext.ActionContext.Action;
     spec = actionTypeContext.OwningSpecification;
     cachedId = "";
     cachedType = spec.DomainTypeName();
 }
 public UriMtHelper(HttpRequestMessage req, ActionTypeContextSurface actionTypeContext)
     : this(req) {
     action     = actionTypeContext.ActionContext.Action;
     spec       = actionTypeContext.OwningSpecification;
     cachedId   = "";
     cachedType = spec.DomainTypeName();
 }
Exemple #3
0
 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 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;
 }
Exemple #6
0
 public static bool IsIdempotent(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <bool>(ScalarProperty.IsIdempotent));
 }
Exemple #7
0
 public static bool IsQueryOnly(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <bool>(ScalarProperty.IsQueryOnly));
 }
Exemple #8
0
 public static string Description(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <string>(ScalarProperty.Description));
 }
Exemple #9
0
 public static string Name(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <string>(ScalarProperty.Name));
 }
Exemple #10
0
 public static IDictionary <string, object> ExtensionData(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <IDictionary <string, object> >(ScalarProperty.ExtensionData));
 }
Exemple #11
0
 public static int MemberOrder(this INakedObjectActionSurface nakedObjectActionSurface)
 {
     return(nakedObjectActionSurface.GetScalarProperty <int>(ScalarProperty.MemberOrder));
 }
Exemple #12
0
 public UriMtHelper(HttpRequestMessage req, ParameterTypeContextSurface parameterTypeContext)
     : this(req) {
     action = parameterTypeContext.Action;
     spec = parameterTypeContext.OwningSpecification;
     param = parameterTypeContext.Parameter;
     cachedId = "";
     cachedType = spec.DomainTypeName();
 }