AsyncMethods 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AsyncMethods --version 1.0.2                
NuGet\Install-Package AsyncMethods -Version 1.0.2                
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.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AsyncMethods --version 1.0.2                
#r "nuget: AsyncMethods, 1.0.2"                
#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.2

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

Download the package from Nuget (AsyncMethods 1.0.2)

public void start() { string pathlog = @"C:\Temp\Erros_AsyncMethod.txt"; int timeout = 1000; int x = 0;

        call = new Method(pathlog);

        while (x < 5)
        {
            call.MethodExecute<bool>(Execute, ExecuteCallBack, false, timeout);
            x++;
        }

}

private bool Execute() { 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 ExecuteCallBack<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.

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