![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Contains the state of a content conversion process. More...
Public Member Functions | |
| ConversionState (string FromContentType, Stream From, string FromFileName, string LocalResourceName, string URL, string ToContentType, Stream To, Variables Session, ICodecProgress Progress, IResourceMap ResourceMap, TryGetLocalResourceFileName TryGetLocalResourceFileName, params string[] PossibleContentTypes) | |
| Contains the state of a content conversion process. More... | |
| bool | TryGetLocalResourceFileName (string Resource, string Host, out string FileName) |
| Tries to get a file name for a resource, if local. More... | |
Properties | |
| string | FromContentType [get] |
| Content type of the content to convert from. More... | |
| Stream | From [get] |
| Stream pointing to binary representation of content. More... | |
| string | FromFileName [get, set] |
| If the content is coming from a file, this parameter contains the name of that file. Otherwise, the parameter is the empty string. More... | |
| string | LocalResourceName [get, set] |
| Local resource name of file, if accessed from a web server. More... | |
| string | URL [get] |
| URL of resource, if accessed from a web server. More... | |
| string | ToContentType [get, set] |
| Content type of the content to convert to. This value might be changed, in case the converter finds a better option. May get updated during the conversion process. More... | |
| Stream | To [get] |
| Stream pointing to where binary representation of content is to be sent. More... | |
| Variables | Session [get] |
| Session states. More... | |
| ICodecProgress | Progress [get] |
| Optional interface for reporting progress during conversion. More... | |
| IResourceMap | ResourceMap [get] |
| Optional resource map. More... | |
| string[] | PossibleContentTypes [get] |
| Possible content types the converter is allowed to convert to. Can be null if there are no alternatives. More... | |
| Exception | Error [get, set] |
| Error response, in case conversion should return an error. More... | |
| bool | HasError [get] |
| If an error should be returned. More... | |
Contains the state of a content conversion process.
Definition at line 20 of file ConversionState.cs.
| Waher.Content.ConversionState.ConversionState | ( | string | FromContentType, |
| Stream | From, | ||
| string | FromFileName, | ||
| string | LocalResourceName, | ||
| string | URL, | ||
| string | ToContentType, | ||
| Stream | To, | ||
| Variables | Session, | ||
| ICodecProgress | Progress, | ||
| IResourceMap | ResourceMap, | ||
| TryGetLocalResourceFileName | TryGetLocalResourceFileName, | ||
| params string[] | PossibleContentTypes | ||
| ) |
Contains the state of a content conversion process.
| FromContentType | Content type of the content to convert from. |
| From | Stream pointing to binary representation of content. |
| FromFileName | If the content is coming from a file, this parameter contains the name of that file. Otherwise, the parameter is the empty string. |
| LocalResourceName | Local resource name of file, if accessed from a web server. |
| URL | URL of resource, if accessed from a web server. |
| ToContentType | Content type of the content to convert to. This value might be changed, in case the converter finds a better option. |
| To | Stream pointing to where binary representation of content is to be sent. |
| Session | Session states. |
| Progress | Optional interface for reporting progress during conversion. |
| ResourceMap | Optional resource map. |
| TryGetLocalResourceFileName | Callback function to get a local file name from a resource. |
| PossibleContentTypes | Possible content types the converter is allowed to convert to. Can be null if there are no alternatives. |
Definition at line 42 of file ConversionState.cs.
| bool Waher.Content.ConversionState.TryGetLocalResourceFileName | ( | string | Resource, |
| string | Host, | ||
| out string | FileName | ||
| ) |
Tries to get a file name for a resource, if local.
| Resource | Resource |
| Host | Optional host, if available. |
| FileName | File name, if resource identified as a local resource. |
Definition at line 135 of file ConversionState.cs.
|
getset |
Error response, in case conversion should return an error.
Definition at line 121 of file ConversionState.cs.
|
get |
Stream pointing to binary representation of content.
Definition at line 68 of file ConversionState.cs.
|
get |
Content type of the content to convert from.
Definition at line 63 of file ConversionState.cs.
|
getset |
If the content is coming from a file, this parameter contains the name of that file. Otherwise, the parameter is the empty string.
Definition at line 74 of file ConversionState.cs.
|
get |
If an error should be returned.
Definition at line 126 of file ConversionState.cs.
|
getset |
Local resource name of file, if accessed from a web server.
Definition at line 79 of file ConversionState.cs.
|
get |
Possible content types the converter is allowed to convert to. Can be null if there are no alternatives.
Definition at line 116 of file ConversionState.cs.
|
get |
Optional interface for reporting progress during conversion.
Definition at line 105 of file ConversionState.cs.
|
get |
Optional resource map.
Definition at line 110 of file ConversionState.cs.
|
get |
Session states.
Definition at line 100 of file ConversionState.cs.
|
get |
Stream pointing to where binary representation of content is to be sent.
Definition at line 95 of file ConversionState.cs.
|
getset |
Content type of the content to convert to. This value might be changed, in case the converter finds a better option. May get updated during the conversion process.
Definition at line 90 of file ConversionState.cs.
|
get |
URL of resource, if accessed from a web server.
Definition at line 84 of file ConversionState.cs.