Commits

Scott Anderson  committed 22a9d52

fixing dispose bug yet again, and making sure nuget is in the repo for package restore

  • Participants
  • Parent commits 8685f33

Comments (0)

Files changed (4)

 
 # Ignore Visual Studio 2008 files
 *.obj
-*.exe
 *.user
 *.aps
 *.pch

File src/.nuget/NuGet.exe

Binary file added.

File src/ActionMailer.Net.sln

 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ActionMailer.Net.Postmark", "ActionMailer.Net.Postmark\ActionMailer.Net.Postmark.csproj", "{CD9F2932-FBE2-4B80-8B88-D6F0A3830C02}"
 EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7A53C3BF-C075-4DA1-93DB-DEE6D3431B34}"
-	ProjectSection(SolutionItems) = preProject
-		.nuget\NuGet.Config = .nuget\NuGet.Config
-		.nuget\nuget.exe = .nuget\nuget.exe
-		.nuget\NuGet.targets = .nuget\NuGet.targets
-	EndProjectSection
-EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU

File src/ActionMailer.Net/DeliveryHelper.cs

             var mailContext = new MailSendingContext(mail);
             _interceptor.OnMailSending(mailContext);
 
-            if (mailContext.Cancel) {
+            if (mailContext.Cancel)
                 return;
-            }
 
             if (async) {
                 _sender.SendAsync(mail, AsyncSendCompleted);
                 return;
             }
 
-            using (_sender) {
-                _sender.Send(mail);
-            }
-
+            _sender.Send(mail);
             _interceptor.OnMailSent(mail);
         }