public UriMtHelper(IOidStrategy oidStrategy, HttpRequestMessage req, ITypeFacade spec) : this(oidStrategy, req) { this.spec = spec; cachedId = ""; CachedType = RestUtils.SpecToPredefinedTypeString(spec, oidStrategy); }
private string GetParameterValue(RestControlFlags flags, ITypeFacade parameterValueSpec) { if (flags.SimpleDomainModel) { return(RestUtils.SpecToTypeAndFormatString(parameterValueSpec, oidStrategy).Item1); } if (flags.FormalDomainModel) { return(BuildDomainTypeUri(RestUtils.SpecToPredefinedTypeString(parameterValueSpec, oidStrategy)).ToString()); } return(null); }
private string GetParameterValue(RestControlFlags flags, INakedObjectSpecificationSurface parameterValueSpec) { if (flags.SimpleDomainModel) { return(RestUtils.SpecToTypeAndFormatString(parameterValueSpec).Item1); } if (flags.FormalDomainModel) { return(BuildDomainTypeUri(RestUtils.SpecToPredefinedTypeString(parameterValueSpec)).ToString()); } return(null); }
public UriMtHelper(HttpRequestMessage req, INakedObjectSpecificationSurface spec) : this(req) { this.spec = spec; cachedId = ""; cachedType = RestUtils.SpecToPredefinedTypeString(spec); }