/// <summary> /// Default constructor /// </summary> public TransferHandler() { // Create a new instance of the async execute handler _asyncExecute = new Threading.AsyncExecution <TransferHandler>(this); _asyncExecute.AsyncExecuteComplete += new Threading.EventHandler <object, bool, System.Exception>(TransferHandler_AsyncExecuteComplete); // Get the reomte URI _remoteUri = Nequeo.Net.Properties.Settings.Default.TransferHandlerBaseAddress; }
/// <summary> /// Default constructor /// </summary> /// <param name="endPointAddress">The endpoint address to connect to.</param> /// <param name="networkCredential">The user network credential</param> public TransferHandler(string endPointAddress, NetworkCredential networkCredential = null) { // Create a new instance of the async execute handler _asyncExecute = new Threading.AsyncExecution <TransferHandler>(this); _asyncExecute.AsyncExecuteComplete += new Threading.EventHandler <object, bool, System.Exception>(TransferHandler_AsyncExecuteComplete); // Get the reomte URI _remoteUri = endPointAddress; _networkCredential = networkCredential; }