ALE.Views.Razor.RazorView.LoadView C# (CSharp) Method

LoadView() protected method

protected LoadView ( string view, string>.Action callback ) : void
view string
callback string>.Action
return void
        protected void LoadView(string view, Action<Exception, string> callback)
        {
            var deUrled = view.Replace('/', '\\').TrimStart('\\');
            var viewFile = Path.Combine(ViewsRoot, deUrled);
            if (!System.IO.File.Exists(viewFile))
            {
                throw new FileNotFoundException("View not found.");
            }
            FileSystem.File.ReadAllText(viewFile, (ex, text) => EventLoop.Pend(() => callback(ex, text)));
        }