Delegate DependencyFileLocator
Used by bilingual document parsers. Helps locate missing dependency files.
The implementation should try to locate the file based on the provided information.
If successful, it returns the actual file path. The implementation may alternatively
throw an exception to abort parsing, or return an empty or null string if the file
could not be located, but parsing should attempt to proceed anyway.
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public delegate string DependencyFileLocator(IDependencyFileProperties missingFileInfo);
Parameters
Type |
Name |
Description |
IDependencyFileProperties |
missingFileInfo |
Everything that is known about the missing dependency file.
The implementation is not expected to change any of these properties, but is not prevented
from doing so.
|
Returns
Type |
Description |
String |
Full path to the located dependency file.
|
Constructors
DependencyFileLocator(Object, IntPtr)
Used by bilingual document parsers. Helps locate missing dependency files.
The implementation should try to locate the file based on the provided information.
If successful, it returns the actual file path. The implementation may alternatively
throw an exception to abort parsing, or return an empty or null string if the file
could not be located, but parsing should attempt to proceed anyway.
Declaration
public DependencyFileLocator(object object, IntPtr method)
Parameters
Type |
Name |
Description |
Object |
object |
|
IntPtr |
method |
|
Methods
BeginInvoke(IDependencyFileProperties, AsyncCallback, Object)
Used by bilingual document parsers. Helps locate missing dependency files.
The implementation should try to locate the file based on the provided information.
If successful, it returns the actual file path. The implementation may alternatively
throw an exception to abort parsing, or return an empty or null string if the file
could not be located, but parsing should attempt to proceed anyway.
Declaration
public virtual IAsyncResult BeginInvoke(IDependencyFileProperties missingFileInfo, AsyncCallback callback, object object)
Parameters
Returns
Type |
Description |
IAsyncResult |
|
EndInvoke(IAsyncResult)
Used by bilingual document parsers. Helps locate missing dependency files.
The implementation should try to locate the file based on the provided information.
If successful, it returns the actual file path. The implementation may alternatively
throw an exception to abort parsing, or return an empty or null string if the file
could not be located, but parsing should attempt to proceed anyway.
Declaration
public virtual string EndInvoke(IAsyncResult result)
Parameters
Type |
Name |
Description |
IAsyncResult |
result |
|
Returns
Invoke(IDependencyFileProperties)
Used by bilingual document parsers. Helps locate missing dependency files.
The implementation should try to locate the file based on the provided information.
If successful, it returns the actual file path. The implementation may alternatively
throw an exception to abort parsing, or return an empty or null string if the file
could not be located, but parsing should attempt to proceed anyway.
Declaration
public virtual string Invoke(IDependencyFileProperties missingFileInfo)
Parameters
Returns