AsyncMethods 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AsyncMethods --version 1.0.0                
NuGet\Install-Package AsyncMethods -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AsyncMethods" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AsyncMethods --version 1.0.0                
#r "nuget: AsyncMethods, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AsyncMethods as a Cake Addin
#addin nuget:?package=AsyncMethods&version=1.0.0

// Install AsyncMethods as a Cake Tool
#tool nuget:?package=AsyncMethods&version=1.0.0                

Donwload the AsyncMethods and LogManager.

private void button1_Click(object sender, EventArgs e) { string pathlog = @"C:\Temp\Erros_AsyncMethod.txt"; int timeout = 1000; int x = 0;

        ILog log = new Log(pathlog);
        call = new Method(log);

        while (x < 10)
        {
            call.MethodExecute<bool>(Executar, ExecutarCallBack, false, timeout);
            x++;
        }

}

private bool Executar() { bool ret = true;

        try
        {
            //Put any logic here
            //Thread.Sleep(2000);
        }
        catch (ThreadAbortException)
        {
            //Put the rollback of your logic (Dispose the objects)
            ret = false;
        }
        catch (Exception)
        {                
            ret = false;
        }

        return ret;
    }

private void ExecutarCallBack<T>(Task<T> ret) { Console.WriteLine("Method ended with sucess ThreadId: " + ret.Id + ", Retorno: " + ret.Result);
}

Product Compatible and additional computed target framework versions.
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 1,089 7/4/2018
1.0.3 943 7/4/2018
1.0.2 897 7/3/2018
1.0.1 887 7/3/2018
1.0.0 955 7/3/2018