//string connection, string container public AzureFileStorage(ICloudBlobContainer container, Func <T, byte[]> getBytes) { _container = container; _container.CreateIfNotExistsAsync(); _getBytes = getBytes; if (!CheckValid()) { throw new ArgumentException($"Type {typeof(T)} not valid "); } }