1using System.Threading.Tasks;
13 internal const string Id =
"DatabaseDefinition";
28 [Page(7,
"Configuration")]
29 [Header(24,
"Folder:")]
30 [ToolTip(25,
"Folder, relative to the application data folder, where object database files will be stored.")]
32 public string Folder {
get;
internal set; }
37 [Page(7,
"Configuration")]
38 [Header(26,
"Default Collection Name:")]
39 [ToolTip(27,
"Name of the collection to use, if the class definition lacks a collection definition.")]
46 [Page(7,
"Configuration")]
47 [Header(28,
"Block Size:")]
48 [ToolTip(29,
"Number of bytes of each B-Tree block in the database.")]
55 [Page(7,
"Configuration")]
56 [Header(30,
"Blocks in Cache:")]
57 [ToolTip(31,
"Number of blocks to maintain in internal memory.")]
64 [Page(7,
"Configuration")]
65 [Header(32,
"BLOB Block Size:")]
66 [ToolTip(33,
"Number of bytes of each BLOB block in the database.")]
73 [Page(7,
"Configuration")]
74 [Header(34,
"Timeout (ms):")]
75 [ToolTip(35,
"Timeout of database operations, in milliseconds.")]
81 [Page(7,
"Configuration")]
82 [Header(36,
"Encrypted.")]
83 [ToolTip(37,
"If the database is encrypted.")]
90 [Page(7,
"Configuration")]
91 [Header(38,
"Compiled.")]
92 [ToolTip(39,
"If object serializers should be compiled or not.")]
93 [Text(
TextPosition.AfterField, 63,
"Note: Changes will take effect after broker has been restarted.")]
114 return Task.FromResult(
false);
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Abstract base class for gateway configuration nodes.
GatewayConfigSource Source
Source hosting the node.
Contains the local database definition.
int TimeoutMs
Timeout of database operations, in milliseconds.
int BlockSize
Number of bytes of each B-Tree block in the database.
int BlocksInCache
Number of blocks to maintain in internal memory.
override Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
string Folder
Folder, relative to the application data folder, where object database files will be stored.
override string NodeId
ID of node.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
bool Compiled
If object serializers should be compiled or not.
bool Encrypted
If the database is encrypted.
int BlobBlockSize
Number of bytes of each BLOB block in the database.
string DefaultCollectionName
Name of the collection to use, if the class definition lacks a collection definition.
DatabaseDefinition(GatewayConfigSource Source)
Contains the local database definition.
Data source mirroring the Gateway.config file.
Tokens available in request.
TextPosition
Where the instructions are to be place.