Ejemplo n.º 1
0
        private static async Task CreateNewFile(string filePath1, PhysicalFileStorage s)
        {
            string content = "Hellow!";
            var    bytes   = Encoding.UTF8.GetBytes(content);

            using (MemoryStream ms = new MemoryStream())
            {
                await s.CreateFileAsync(filePath1, new MemoryStream(bytes));
            }
        }
Ejemplo n.º 2
0
        private PhysicalFileStorage CreateFileStorage()
        {
            var storage = new PhysicalFileStorage("A-scope", new DefaultFileRequestMapping("/Test"));

            return(storage);
        }