/// <summary> /// Load a single database file or a directory with database inside to current instance of <see cref="ClamEngine"/>. /// </summary> /// <param name="path">Fullpath to a file or directory containing the database file(s).</param> /// <param name="flags">Database loading options (default <see cref="DatabaseFlags.Standard"/>.</param> public void Load(string path, DatabaseFlags flags = DatabaseFlags.Standard) { ArgValidate.NotEmptyString(path, nameof(path)); ThrowIfCompiled(); NativeMethods.cl_load(path, _handle.Handle, ref _signatureCount, (uint)flags).ThrowIfError(); }
public RegisterDatabaseInstanceRequest( long databaseId, ManagedResource resource, int priority = 1, DatabaseFlags flags = DatabaseFlags.Primary) { Ensure.IsValidId(databaseId, nameof(databaseId)); DatabaseId = databaseId; Resource = resource; Priority = priority; Flags = flags; }
public DatabaseInstance( long id, long clusterId, DatabaseFlags flags, int priority, ManagedResource resource) { Id = id; Flags = flags; ClusterId = clusterId; Priority = priority; ProviderId = resource.ProviderId; LocationId = resource.LocationId; ResourceId = resource.ResourceId; }