ForFile() public static method

public static ForFile ( StoreOptions options, string file, string name = null ) : TransformFunction
options StoreOptions
file string
name string
return TransformFunction
コード例 #1
0
ファイル: ITransforms.cs プロジェクト: jmbledsoe/marten
        public void LoadFile(string file, string name = null)
        {
            if (!Path.IsPathRooted(file))
            {
                file = AppContext.BaseDirectory.AppendPath(file);
            }

            var function = TransformFunction.ForFile(_options, file, name);

            _functions.Add(function.Name, function);
        }
コード例 #2
0
        public void LoadFile(string file, string name = null)
        {
            assertAvailable();

            if (!Path.IsPathRooted(file))
            {
                file = AppContext.BaseDirectory.AppendPath(file);
            }

            var function = TransformFunction.ForFile(_options, file, name);

            AddFunction(function);
        }
コード例 #3
0
        public void LoadFile(string file, string name = null)
        {
            var function = TransformFunction.ForFile(_options, file, name);

            _functions.Add(function.Name, function);
        }