/// <summary> /// Attaches a file to this email. /// </summary> public static async Task Attach(this IEmailMessage @this, Blob file) { if (file == null) { throw new ArgumentNullException(nameof(file)); } if (file.IsEmpty()) { return; } @this.Attach(await file.GetFileDataAsync(), file.FileName); }