Method StartAsync
StartAsync(IDriver, Byte[])
Builds a new signing object with the given document and driver object.
Declaration
public static Task<ISigning> StartAsync(IDriver driver, byte[] document)
Parameters
Type | Name | Description |
---|---|---|
IDriver | driver | The driver object to be used. |
System.Byte[] | document | The document to be used. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ISigning> | The task results in a signing object. |
Remarks
The driver
object must be in control of an attached signature device.
https://www.stepoverinfo.net/dotnetDocu/api/Sig.DeviceAPI.IDriver.SetDevice.html
Please note that a signing object controls unmanaged resources that should be disposed before the program exits To that end, it implements System.IDisposable.
This can be done by calling the Dispose method explicitly.
// C#
signing.Dispose();
// C#
using ISigning theSigningObject = SigningFactory.StartAsync(driver, document);
StartAsync(IDriver, String)
Builds a new signing object with the given document and driver object.
Declaration
public static Task<ISigning> StartAsync(IDriver driver, string xmlDocument)
Parameters
Type | Name | Description |
---|---|---|
IDriver | driver | The driver object to be used. |
System.String | xmlDocument | Takes entire XMl as one complete string. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ISigning> | The task results in a signing object. |
Remarks
The driver
object must be in control of an attached signature device.
https://www.stepoverinfo.net/dotnetDocu/api/Sig.DeviceAPI.IDriver.SetDevice.html
Please note that a signing object controls unmanaged resources that should be disposed before the program exits To that end, it implements System.IDisposable.
This can be done by calling the Dispose method explicitly.
// C#
signing.Dispose();
// C#
using ISigning theSigningObject = SigningFactory.StartAsync(driver, document);