/// <summary> /// Initializes a new instance of the FileAdapterInboundHandler class /// </summary> public FileAdapterInboundHandler(FileAdapterConnection connection , MetadataLookup metadataLookup) : base(connection, metadataLookup) { connectionUri = connection.ConnectionFactory.ConnectionUri; pollingType = connection.ConnectionFactory.Adapter.PollingType; if (pollingType == PollingType.Event || pollingType == PollingType.Simple) { if (pollingType == PollingType.Event) { watcher = new FileSystemWatcher(connectionUri.Path, connectionUri.FileName); watcher.Changed += FileEvent; } pollingInterval = connection.ConnectionFactory.Adapter.PollingInterval; pollingTimer = new Timer(new TimerCallback(t => GetFiles())); } else scheduleName = connection.ConnectionFactory.Adapter.ScheduleName; }
/// <summary> /// Initializes a new instance of the FileAdapterOutboundHandler class /// </summary> public FileAdapterOutboundHandler(FileAdapterConnection connection , MetadataLookup metadataLookup) : base(connection, metadataLookup) { }
protected FileAdapterHandlerBase(FileAdapterConnection connection , MetadataLookup metadataLookup) { this.connection = connection; this.metadataLookup = metadataLookup; }