//public static FolderQueue CreateSync( // QueueHost host, // int connectTimeout, // int maxItemsPersession, // FileOrderTypes orderType, // bool isCoverable) //{ // return new FolderQueue(host) // { // FileOrderType = orderType, // MaxItemsPerSession = maxItemsPersession, // ConnectTimeout = connectTimeout, // IsCoverable = isCoverable, // OperationType = AdapterOperations.Async, // }; //} public static FolderQueue CreateAsync( QueueHost host, int connectTimeout, int maxItemsPersession, FileOrderTypes orderType, Action <QueueItem> targetAction, bool isCoverable) { return(new FolderQueue(host) { FileOrderType = orderType, MaxItemsPerSession = maxItemsPersession, QueueAction = targetAction, ConnectTimeout = connectTimeout, IsCoverable = isCoverable //OperationType = AdapterOperations.Recieve, }); }
public static FolderQueue CreateAsyncTransfer( QueueHost host, int connectTimeout, int maxItemsPersession, FileOrderTypes orderType, Action <IQueueAck> ackAction, QueueHost hostDestination, bool isCoverable) { return(new FolderQueue(host) { FileOrderType = orderType, MaxItemsPerSession = maxItemsPersession, AckAction = ackAction, ConnectTimeout = connectTimeout, IsCoverable = isCoverable, //OperationType = AdapterOperations.Transfer, Destination = hostDestination }); }