Example #1
0
 public static IManagedReader OpenReader(string path, int numberOfReaders, IReaderClient client, IDrLogging logger)
 {
     try
     {
         HttpClient.Initialize(logger);
         var uri = new Uri(path);
         return(readers[uri.Scheme](uri, numberOfReaders, client, logger));
     }
     catch (Exception e)
     {
         DryadLogger l = new DryadLogger(logger);
         l.LogError("Caught exception opening reader " + e.ToString());
         return(null);
     }
 }
Example #2
0
 public StreamReader(int bSize, IReaderClient c, IDrLogging logger)
 {
     client = c;
     log = new DryadLogger(logger);
     bufferSize = bSize;
 }
Example #3
0
 public AzureReader(Uri path, int numberOfReaders, IReaderClient client, IDrLogging logger)
     : base(ComputeBufferSize(numberOfReaders), client, logger)
 {
     source = path;
 }
Example #4
0
 private static IManagedReader OpenAzureReader(Uri uri, int numberOfReaders, IReaderClient client, IDrLogging logger)
 {
     return(new AzureReader(uri, numberOfReaders, client, logger));
 }
Example #5
0
 public StreamReader(int bSize, IReaderClient c, IDrLogging logger)
 {
     client     = c;
     log        = new DryadLogger(logger);
     bufferSize = bSize;
 }
Example #6
0
 public static IManagedReader OpenReader(string path, int numberOfReaders, IReaderClient client, IDrLogging logger)
 {
     try
     {
         HttpClient.Initialize(logger);
         var uri = new Uri(path);
         return readers[uri.Scheme](uri, numberOfReaders, client, logger);
     }
     catch (Exception e)
     {
         DryadLogger l = new DryadLogger(logger);
         l.LogError("Caught exception opening reader " + e.ToString());
         return null;
     }
 }