Beispiel #1
0
        static Functions()
        {
            string inputStorage  = Environment.GetEnvironmentVariable("PDFTEXTREADER_PDF");
            string outputStorage = Environment.GetEnvironmentVariable("PDFTEXTREADER_OUTPUT");

            g_fileSystem = new AzureFS(inputStorage, outputStorage);
        }
Beispiel #2
0
        public static void Run(AzureFS azure, string filename)
        {
            using (var sw = new System.IO.StreamWriter(azure.OpenWriter(filename)))
            {
                sw.WriteLine("Hello from WRITER");
            }

            using (var sr = new System.IO.StreamReader(azure.OpenReader(filename)))
            {
                string text = sr.ReadToEnd();

                Console.WriteLine("Output from READER = " + text);
            }
        }
Beispiel #3
0
        static Functions()
        {
            string inputStorage    = Environment.GetEnvironmentVariable("PDFTEXTREADER_PDF");
            string inputContainer  = "pdf";
            string outputStorage   = Environment.GetEnvironmentVariable("PDFTEXTREADER_OUTPUT");
            string outputContainer = "output";

            var input  = new AzureBlob(inputStorage, inputContainer);
            var output = new AzureBlob(outputStorage, outputContainer);

            g_fileSystem = new AzureFS(input, output);
            g_input      = input;
            g_output     = output;
        }