/// <inheritdoc /> public dynamic CreateInstance(string virtualPath, string dontRelyOnParameterOrder = Eav.Constants.RandomProtectionParameter, string name = null, string relativePath = null, bool throwOnError = true) { var wrapLog = Log.Call <dynamic>(); // usually we don't have a relative path, so we use the preset path from when this class was instantiated relativePath = relativePath ?? CreateInstancePath; var instance = UnwrappedContents?.CreateInstance(virtualPath, dontRelyOnParameterOrder, name, relativePath ?? CreateInstancePath, throwOnError); return(wrapLog((instance != null).ToString(), instance)); }
/// <inheritdoc /> public dynamic CreateInstance(string virtualPath, string dontRelyOnParameterOrder = Eav.Constants.RandomProtectionParameter, string name = null, string relativePath = null, bool throwOnError = true) => UnwrappedContents?.CreateInstance(virtualPath, dontRelyOnParameterOrder, name, CreateInstancePath, throwOnError);