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;
     }
 }
Пример #2
0
 public virtual string ExtractString(ClrObject clrObj)
 {
     return(clrObj.GetStringSafeFromSelf());
 }