C# Class ZeroInstall.Store.Implementations.IpcStore

Provides transparent access to an IStore running in another process (the Store Service).
Inheritance: IStore
显示文件 Open project: 0install/0install-win

Public Properties

Property Type Description
IpcAcl CommonSecurityDescriptor

Public Methods

Method Description
AddArchives ( IEnumerable archiveInfos, ManifestDigest manifestDigest, ITaskHandler handler ) : string
AddDirectory ( string path, ManifestDigest manifestDigest, ITaskHandler handler ) : string
Contains ( ManifestDigest manifestDigest ) : bool

Always returns false. Use a non-IPC IStore for this method instead.

Using the store service for this is unnecessary since it only requires read access to the file system.

Contains ( string directory ) : bool

Always returns false. Use a non-IPC IStore for this method instead.

Using the store service for this is unnecessary since it only requires read access to the file system.

Flush ( ) : void
GetPath ( ManifestDigest manifestDigest ) : string

Always returns null. Use a non-IPC IStore for this method instead.

Using the store service for this is unnecessary since it only requires read access to the file system.

ListAll ( ) : IEnumerable

Always returns empty list. Use a non-IPC IStore for this method instead.

Using the store service for this is unnecessary since it only requires read access to the file system.

ListAllTemp ( ) : IEnumerable

Always returns empty list. Use a non-IPC IStore for this method instead.

Using the store service for this is unnecessary since it only requires read access to the file system.

Optimise ( ITaskHandler handler ) : long

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.

Remove ( ManifestDigest manifestDigest, ITaskHandler handler ) : bool

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.

ToString ( ) : string

Returns a fixed string.

Verify ( ManifestDigest manifestDigest, ITaskHandler handler ) : void

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.

Private Methods

Method Description
CreateServiceProxy ( ) : IStore

Sets up named pipes and creates a proxy object for accessing the IStore in the store service.

Must only be called once per process!

GetServiceProxy ( ) : IStore
IpcStore ( ) : System

Method Details

AddArchives() public method

public AddArchives ( IEnumerable archiveInfos, ManifestDigest manifestDigest, ITaskHandler handler ) : string
archiveInfos IEnumerable
manifestDigest ManifestDigest
handler ITaskHandler
return string

AddDirectory() public method

public AddDirectory ( string path, ManifestDigest manifestDigest, ITaskHandler handler ) : string
path string
manifestDigest ManifestDigest
handler ITaskHandler
return string

Contains() public method

Always returns false. Use a non-IPC IStore for this method instead.
Using the store service for this is unnecessary since it only requires read access to the file system.
public Contains ( ManifestDigest manifestDigest ) : bool
manifestDigest ManifestDigest
return bool

Contains() public method

Always returns false. Use a non-IPC IStore for this method instead.
Using the store service for this is unnecessary since it only requires read access to the file system.
public Contains ( string directory ) : bool
directory string
return bool

Flush() public method

public Flush ( ) : void
return void

GetPath() public method

Always returns null. Use a non-IPC IStore for this method instead.
Using the store service for this is unnecessary since it only requires read access to the file system.
public GetPath ( ManifestDigest manifestDigest ) : string
manifestDigest ManifestDigest
return string

ListAll() public method

Always returns empty list. Use a non-IPC IStore for this method instead.
Using the store service for this is unnecessary since it only requires read access to the file system.
public ListAll ( ) : IEnumerable
return IEnumerable

ListAllTemp() public method

Always returns empty list. Use a non-IPC IStore for this method instead.
Using the store service for this is unnecessary since it only requires read access to the file system.
public ListAllTemp ( ) : IEnumerable
return IEnumerable

Optimise() public method

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.
public Optimise ( ITaskHandler handler ) : long
handler ITaskHandler
return long

Remove() public method

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.
public Remove ( ManifestDigest manifestDigest, ITaskHandler handler ) : bool
manifestDigest ManifestDigest
handler ITaskHandler
return bool

ToString() public method

Returns a fixed string.
public ToString ( ) : string
return string

Verify() public method

Does nothing. Should be handled by an DirectoryStore directly instead of using the service.
public Verify ( ManifestDigest manifestDigest, ITaskHandler handler ) : void
manifestDigest ManifestDigest
handler ITaskHandler
return void

Property Details

IpcAcl public_oe static_oe property

ACL for IPC named pipes. Allows object owners, normal users and the system write access.
public static CommonSecurityDescriptor IpcAcl
return CommonSecurityDescriptor