ServerSideSource.memory_only


Description:

[ CCode ( has_construct_function = false , type = "ESource*" ) ]
public ServerSideSource.memory_only (SourceRegistryServer server, string? uid) throws Error

Creates a memory-only ServerSideSource which belongs to server.

No on-disk key file is created for this data source, so it will not be remembered across sessions.

Data source collections are often populated with memory-only data sources to serve as proxies for resources discovered on a remote server. These data sources are usually neither writable nor removable by clients, at least not directly.

If an error occurs while instantiating the ServerSideSource, the function sets throws and returns null. Although at this time there are no known error conditions for memory-only data sources.

Parameters:

server

an SourceRegistryServer

uid

a unique identifier, or null

Returns:

a new memory-only ServerSideSource, or null on error