C# Class EventStore.ClientAPI.StreamMetadataBuilder

Builder for StreamMetadata.
Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

Méthode Description
Build ( ) : StreamMetadata

Builds a StreamMetadata from a StreamMetadataBuilder.

SetCacheControl ( System.TimeSpan cacheControl ) : StreamMetadataBuilder

Sets the amount of time for which the stream head is cachable.

SetCustomProperty ( string key, bool value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, decimal value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, double value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, float value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, int value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, long value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomProperty ( string key, string value ) : StreamMetadataBuilder

Sets a custom metadata property.

SetCustomPropertyWithValueAsRawJsonString ( string key, string rawJson ) : StreamMetadataBuilder

Sets a custom metadata property to a string of raw JSON.

SetDeleteRole ( string role ) : StreamMetadataBuilder

Sets a single role name with delete permission for the stream.

SetDeleteRoles ( string roles ) : StreamMetadataBuilder

Sets role names with delete permission for the stream.

SetMaxAge ( System.TimeSpan maxAge ) : StreamMetadataBuilder

Sets the maximum age of events allowed in the stream.

SetMaxCount ( int maxCount ) : StreamMetadataBuilder

Sets the maximum number of events allowed in the stream.

SetMetadataReadRole ( string role ) : StreamMetadataBuilder

Sets a single role name with metadata read permission for the stream.

SetMetadataReadRoles ( string roles ) : StreamMetadataBuilder

Sets role names with metadata read permission for the stream.

SetMetadataWriteRole ( string role ) : StreamMetadataBuilder

Sets a single role name with metadata write permission for the stream.

SetMetadataWriteRoles ( string roles ) : StreamMetadataBuilder

Sets role names with metadata write permission for the stream.

SetReadRole ( string role ) : StreamMetadataBuilder

Sets a single role name with read permission for the stream.

SetReadRoles ( string roles ) : StreamMetadataBuilder

Sets role names with read permission for the stream.

SetTruncateBefore ( int truncateBefore ) : StreamMetadataBuilder

Sets the event number from which previous events can be scavenged.

SetWriteRole ( string role ) : StreamMetadataBuilder

Sets a single role name with write permission for the stream.

SetWriteRoles ( string roles ) : StreamMetadataBuilder

Sets role names with write permission for the stream.

Private Methods

Méthode Description
StreamMetadataBuilder ( int maxCount = null, System.TimeSpan maxAge = null, int truncateBefore = null, System.TimeSpan cacheControl = null, string aclRead = null, string aclWrite = null, string aclDelete = null, string aclMetaRead = null, string aclMetaWrite = null, JToken>.IDictionary customMetadata = null ) : System

Method Details

Build() public méthode

Builds a StreamMetadata from a StreamMetadataBuilder.
public Build ( ) : StreamMetadata
Résultat StreamMetadata

SetCacheControl() public méthode

Sets the amount of time for which the stream head is cachable.
public SetCacheControl ( System.TimeSpan cacheControl ) : StreamMetadataBuilder
cacheControl System.TimeSpan The amount of time for which the stream head is cachable.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, bool value ) : StreamMetadataBuilder
key string The key.
value bool The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, decimal value ) : StreamMetadataBuilder
key string The key.
value decimal The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, double value ) : StreamMetadataBuilder
key string The key.
value double The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, float value ) : StreamMetadataBuilder
key string The key.
value float The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, int value ) : StreamMetadataBuilder
key string The key.
value int The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, long value ) : StreamMetadataBuilder
key string The key.
value long The value.
Résultat StreamMetadataBuilder

SetCustomProperty() public méthode

Sets a custom metadata property.
public SetCustomProperty ( string key, string value ) : StreamMetadataBuilder
key string The key.
value string The value.
Résultat StreamMetadataBuilder

SetCustomPropertyWithValueAsRawJsonString() public méthode

Sets a custom metadata property to a string of raw JSON.
public SetCustomPropertyWithValueAsRawJsonString ( string key, string rawJson ) : StreamMetadataBuilder
key string The key.
rawJson string The value.
Résultat StreamMetadataBuilder

SetDeleteRole() public méthode

Sets a single role name with delete permission for the stream.
public SetDeleteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Résultat StreamMetadataBuilder

SetDeleteRoles() public méthode

Sets role names with delete permission for the stream.
public SetDeleteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Résultat StreamMetadataBuilder

SetMaxAge() public méthode

Sets the maximum age of events allowed in the stream.
public SetMaxAge ( System.TimeSpan maxAge ) : StreamMetadataBuilder
maxAge System.TimeSpan The maximum age of events allowed in the stream.
Résultat StreamMetadataBuilder

SetMaxCount() public méthode

Sets the maximum number of events allowed in the stream.
public SetMaxCount ( int maxCount ) : StreamMetadataBuilder
maxCount int The maximum number of events allowed in the stream.
Résultat StreamMetadataBuilder

SetMetadataReadRole() public méthode

Sets a single role name with metadata read permission for the stream.
public SetMetadataReadRole ( string role ) : StreamMetadataBuilder
role string Role name.
Résultat StreamMetadataBuilder

SetMetadataReadRoles() public méthode

Sets role names with metadata read permission for the stream.
public SetMetadataReadRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Résultat StreamMetadataBuilder

SetMetadataWriteRole() public méthode

Sets a single role name with metadata write permission for the stream.
public SetMetadataWriteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Résultat StreamMetadataBuilder

SetMetadataWriteRoles() public méthode

Sets role names with metadata write permission for the stream.
public SetMetadataWriteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Résultat StreamMetadataBuilder

SetReadRole() public méthode

Sets a single role name with read permission for the stream.
public SetReadRole ( string role ) : StreamMetadataBuilder
role string Role name.
Résultat StreamMetadataBuilder

SetReadRoles() public méthode

Sets role names with read permission for the stream.
public SetReadRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Résultat StreamMetadataBuilder

SetTruncateBefore() public méthode

Sets the event number from which previous events can be scavenged.
public SetTruncateBefore ( int truncateBefore ) : StreamMetadataBuilder
truncateBefore int The event number from which previous events can be scavenged.
Résultat StreamMetadataBuilder

SetWriteRole() public méthode

Sets a single role name with write permission for the stream.
public SetWriteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Résultat StreamMetadataBuilder

SetWriteRoles() public méthode

Sets role names with write permission for the stream.
public SetWriteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Résultat StreamMetadataBuilder