|
![]() |
A plugin for implementing a custom file protocol.
Namespace: Autodesk.Navisworks.Api.Plugins
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Remarks
This class lets you implement a custom file protocol that allows
you to open files from a source other than the local filesystem, for
example a document management system.
The protocol can support download/upload of a file, streaming of
a file, or both.
It is recommended that at a minimum it supports the Get/Put methods.
When a file is streamed (using OpenFile, ReadFile, etc.), calls to
the protocol will be made from multiple threads, so you should not
store any members used for file reading on the implementation of this
interface. Instead, you can store file-specific information in your
file handle.
To open a file directly, you must return an object that represents the
file handle. This needs to derive from the FileProtocolHandle object.
The protocol should support URIs as defined by RFC 3986, and it
is expected the URIs contain a hostname part and a path part, where
the path components are seperated with the "/" character.
Inheritance Hierarchy
System..::..Object
Autodesk.Navisworks.Api.Plugins..::..Plugin
Autodesk.Navisworks.Api.Plugins..::..FileProtocolPlugin
Autodesk.Navisworks.Api.Plugins..::..Plugin
Autodesk.Navisworks.Api.Plugins..::..FileProtocolPlugin