Class Service
- Namespace
- Secret
- Assembly
- Secret-1.dll
public class Service : DBusProxy, AsyncInitable, DBusInterface, Initable, Backend, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Service
- Implements
- Inherited Members
Constructors
Service(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Service(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Service(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Service(CreationData data)
Parameters
dataCreationData
Service(ServiceHandle)
protected Service(ServiceHandle handle)
Parameters
handleServiceHandle
Properties
Flags
public ServiceFlags Flags { get; }
Property Value
Methods
ClearFinish(AsyncResult)
public bool ClearFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ClearSync(Schema?, HashTable, Cancellable?)
public bool ClearSync(Schema? schema, HashTable attributes, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTablecancellableCancellable
Returns
CreateCollectionDbusPathFinish(AsyncResult)
public string CreateCollectionDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
CreateCollectionDbusPathSync(HashTable, string?, CollectionCreateFlags, Cancellable?)
public string CreateCollectionDbusPathSync(HashTable properties, string? alias, CollectionCreateFlags flags, Cancellable? cancellable)
Parameters
propertiesHashTablealiasstringflagsCollectionCreateFlagscancellableCancellable
Returns
CreateItemDbusPathFinish(AsyncResult)
public string CreateItemDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
CreateItemDbusPathSync(string, HashTable, Value, ItemCreateFlags, Cancellable?)
public string CreateItemDbusPathSync(string collectionPath, HashTable properties, Value value, ItemCreateFlags flags, Cancellable? cancellable)
Parameters
collectionPathstringpropertiesHashTablevalueValueflagsItemCreateFlagscancellableCancellable
Returns
DecodeDbusSecret(Variant)
public Value DecodeDbusSecret(Variant value)
Parameters
valueVariant
Returns
DeleteItemDbusPathFinish(AsyncResult)
public bool DeleteItemDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
DeleteItemDbusPathSync(string, Cancellable?)
public bool DeleteItemDbusPathSync(string itemPath, Cancellable? cancellable)
Parameters
itemPathstringcancellableCancellable
Returns
Disconnect()
public static void Disconnect()
DupObject()
[Version("2.32")]
public DBusObject? DupObject()
Returns
EncodeDbusSecret(Value)
public Variant EncodeDbusSecret(Value value)
Parameters
valueValue
Returns
EnsureSessionFinish(AsyncResult)
public bool EnsureSessionFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
EnsureSessionSync(Cancellable?)
public bool EnsureSessionSync(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
GetCollectionGtype()
public Type GetCollectionGtype()
Returns
GetCollections()
public List? GetCollections()
Returns
GetFinish(AsyncResult)
public static Service GetFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetFlags()
public ServiceFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetItemGtype()
public Type GetItemGtype()
Returns
GetObject()
[Version("2.30")]
public DBusObject? GetObject()
Returns
GetSecretForDbusPathFinish(AsyncResult)
public Value? GetSecretForDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetSecretForDbusPathSync(string, Cancellable?)
public Value? GetSecretForDbusPathSync(string itemPath, Cancellable? cancellable)
Parameters
itemPathstringcancellableCancellable
Returns
GetSecretsForDbusPathsFinish(AsyncResult)
public HashTable GetSecretsForDbusPathsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetSecretsForDbusPathsSync(string, Cancellable?)
public HashTable GetSecretsForDbusPathsSync(string itemPaths, Cancellable? cancellable)
Parameters
itemPathsstringcancellableCancellable
Returns
GetSessionAlgorithms()
public string? GetSessionAlgorithms()
Returns
GetSessionDbusPath()
public string? GetSessionDbusPath()
Returns
GetSync(ServiceFlags, Cancellable?)
public static Service GetSync(ServiceFlags flags, Cancellable? cancellable)
Parameters
flagsServiceFlagscancellableCancellable
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
InitFinish(AsyncResult)
[Version("2.22")]
public bool InitFinish(AsyncResult res)
Parameters
resAsyncResult
Returns
LoadCollectionsFinish(AsyncResult)
public bool LoadCollectionsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
LoadCollectionsSync(Cancellable?)
public bool LoadCollectionsSync(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
LockDbusPathsFinish(AsyncResult, out string[]?)
public int LockDbusPathsFinish(AsyncResult result, out string[]? locked)
Parameters
resultAsyncResultlockedstring[]
Returns
LockDbusPathsSync(string[], Cancellable?, out string[]?)
public int LockDbusPathsSync(string[] paths, Cancellable? cancellable, out string[]? locked)
Parameters
pathsstring[]cancellableCancellablelockedstring[]
Returns
LookupFinish(AsyncResult)
public Value LookupFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
LookupSync(Schema?, HashTable, Cancellable?)
public Value LookupSync(Schema? schema, HashTable attributes, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTablecancellableCancellable
Returns
NewFromPointer(nint, bool)
Creates a new managed Service instance for a given pointer.
public static Service NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Service and sets the properties specified by the construct arguments.
public static Service NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
OpenFinish(AsyncResult)
public static Service OpenFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
OpenSync(Type, string?, ServiceFlags, Cancellable?)
public static Service OpenSync(Type serviceGtype, string? serviceBusName, ServiceFlags flags, Cancellable? cancellable)
Parameters
serviceGtypeTypeserviceBusNamestringflagsServiceFlagscancellableCancellable
Returns
PromptAtDbusPathFinish(AsyncResult)
public Variant? PromptAtDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
PromptAtDbusPathSync(string, Cancellable?, VariantType?)
public Variant? PromptAtDbusPathSync(string promptPath, Cancellable? cancellable, VariantType? returnType)
Parameters
promptPathstringcancellableCancellablereturnTypeVariantType
Returns
PromptFinish(AsyncResult)
public Variant PromptFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
PromptSync(Prompt, Cancellable?, VariantType)
public Variant PromptSync(Prompt prompt, Cancellable? cancellable, VariantType returnType)
Parameters
promptPromptcancellableCancellablereturnTypeVariantType
Returns
ReadAliasDbusPathFinish(AsyncResult)
public string? ReadAliasDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ReadAliasDbusPathSync(string, Cancellable?)
public string? ReadAliasDbusPathSync(string alias, Cancellable? cancellable)
Parameters
aliasstringcancellableCancellable
Returns
SearchFinish(AsyncResult)
public List SearchFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SearchForDbusPathsFinish(AsyncResult, out string[]?, out string[]?)
public bool SearchForDbusPathsFinish(AsyncResult result, out string[]? unlocked, out string[]? locked)
Parameters
resultAsyncResultunlockedstring[]lockedstring[]
Returns
SearchForDbusPathsSync(Schema?, HashTable, Cancellable?, out string[]?, out string[]?)
public bool SearchForDbusPathsSync(Schema? schema, HashTable attributes, Cancellable? cancellable, out string[]? unlocked, out string[]? locked)
Parameters
schemaSchemaattributesHashTablecancellableCancellableunlockedstring[]lockedstring[]
Returns
SearchSync(Schema?, HashTable, SearchFlags, Cancellable?)
public List SearchSync(Schema? schema, HashTable attributes, SearchFlags flags, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTableflagsSearchFlagscancellableCancellable
Returns
SetAliasFinish(AsyncResult)
public bool SetAliasFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetAliasSync(string, Collection?, Cancellable?)
public bool SetAliasSync(string alias, Collection? collection, Cancellable? cancellable)
Parameters
aliasstringcollectionCollectioncancellableCancellable
Returns
SetAliasToDbusPathFinish(AsyncResult)
public bool SetAliasToDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetAliasToDbusPathSync(string, string?, Cancellable?)
public bool SetAliasToDbusPathSync(string alias, string? collectionPath, Cancellable? cancellable)
Parameters
aliasstringcollectionPathstringcancellableCancellable
Returns
SetObject(DBusObject?)
[Version("2.30")]
public void SetObject(DBusObject? @object)
Parameters
objectDBusObject
StoreFinish(AsyncResult)
public bool StoreFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
StoreSync(Schema?, HashTable, string?, string, Value, Cancellable?)
public bool StoreSync(Schema? schema, HashTable attributes, string? collection, string label, Value value, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTablecollectionstringlabelstringvalueValuecancellableCancellable
Returns
UnlockDbusPathsFinish(AsyncResult, out string[]?)
public int UnlockDbusPathsFinish(AsyncResult result, out string[]? unlocked)
Parameters
resultAsyncResultunlockedstring[]
Returns
UnlockDbusPathsSync(string[], Cancellable?, out string[]?)
public int UnlockDbusPathsSync(string[] paths, Cancellable? cancellable, out string[]? unlocked)
Parameters
pathsstring[]cancellableCancellableunlockedstring[]