protected virtual void ExtractCommandOrContext(ClrObject clrObj, IModelMapperFactory factory, ref string command, ref HttpContextMappingModel httpContext) { if (clrObj.Type?.IsString == true) { command = clrObj.GetStringSafeFromSelf(); } else { httpContext = factory.BuildModel(clrObj) as HttpContextMappingModel; } }
public virtual string ExtractString(ClrObject clrObj) { return(clrObj.GetStringSafeFromSelf()); }