public static void Initialize(string directoryPath) {
if (string.IsNullOrEmpty(directoryPath)) {
throw new ArgumentNullException(nameof(directoryPath));
}
if (!directoryPath.EndsWith(Path.DirectorySeparatorChar.ToString())) {
directoryPath += Path.DirectorySeparatorChar;
}
var dllPath = $"{directoryPath}{Dependencies[0]}{DllExtension}";
if (!File.Exists(dllPath)) {
throw new ArgumentException("The directory specified does not contain the Awesomium.NET assemblies", nameof(directoryPath));
}
_awesomiumPath = directoryPath;
AppDomain.CurrentDomain.AssemblyResolve += ResolveAwesomium;
Logging.Write(directoryPath);
}