Call Remote
Migrated Code Examples:
Simple Call remote
new Shared.Remoting.DefaultService().Run("MyProgName");
Call remote based on expression
new Shared.Remoting.DefaultService().Run(u.If(TableB.Name1 == "", "MyprogName2", "MyprogName1"));
Call remote with Argument
new Shared.Remoting.DefaultService().Run("MyProgName", TableB.Code);
Using Result
Result.Value = u.CastToNumber(new Shared.Remoting.DefaultService().Run("MyProgName", TableB.Code));
Using Wait = No
new Shared.Remoting.DefaultService().RunAsync("MyProgName", TableB.Code);
Using Result File name
new Shared.Remoting.DefaultService
{
ResultFileName = @"C:\Temp\file.txt"
}.Run("MyProgName", "aaa");
Using Return code
new Shared.Remoting.DefaultService
{
ResultFileName = @"C:\Temp\file.txt",
ReturnCodeColumn = ReturnCode
}.Run("MyProgName", "aaa");
Using Reason code
new Shared.Remoting.DefaultService
{
ResultFileName = @"C:\Temp\file.txt",
ReturnCodeColumn = ReturnCode,
ErrorCodeColumn = Reason
}.Run("MyProgName", "aaa");
Using Message ID
new Shared.Remoting.DefaultService
{
ResultFileName = @"C:\Temp\file.txt",
ReturnCodeColumn = ReturnCode,
ErrorCodeColumn = Reason,
MessageIDColumn = MessageID
}.Run("MyProgName", "aaa");
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com