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); } }
public StreamReader(int bSize, IReaderClient c, IDrLogging logger) { client = c; log = new DryadLogger(logger); bufferSize = bSize; }
public AzureReader(Uri path, int numberOfReaders, IReaderClient client, IDrLogging logger) : base(ComputeBufferSize(numberOfReaders), client, logger) { source = path; }
private static IManagedReader OpenAzureReader(Uri uri, int numberOfReaders, IReaderClient client, IDrLogging logger) { return(new AzureReader(uri, numberOfReaders, client, logger)); }
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; } }