C# Класс EventStore.ClientAPI.StreamMetadataBuilder

Builder for StreamMetadata.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Build() публичный Метод

Builds a StreamMetadata from a StreamMetadataBuilder.
public Build ( ) : StreamMetadata
Результат StreamMetadata

SetCacheControl() публичный Метод

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.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, bool value ) : StreamMetadataBuilder
key string The key.
value bool The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, decimal value ) : StreamMetadataBuilder
key string The key.
value decimal The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, double value ) : StreamMetadataBuilder
key string The key.
value double The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, float value ) : StreamMetadataBuilder
key string The key.
value float The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, int value ) : StreamMetadataBuilder
key string The key.
value int The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, long value ) : StreamMetadataBuilder
key string The key.
value long The value.
Результат StreamMetadataBuilder

SetCustomProperty() публичный Метод

Sets a custom metadata property.
public SetCustomProperty ( string key, string value ) : StreamMetadataBuilder
key string The key.
value string The value.
Результат StreamMetadataBuilder

SetCustomPropertyWithValueAsRawJsonString() публичный Метод

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.
Результат StreamMetadataBuilder

SetDeleteRole() публичный Метод

Sets a single role name with delete permission for the stream.
public SetDeleteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Результат StreamMetadataBuilder

SetDeleteRoles() публичный Метод

Sets role names with delete permission for the stream.
public SetDeleteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Результат StreamMetadataBuilder

SetMaxAge() публичный Метод

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.
Результат StreamMetadataBuilder

SetMaxCount() публичный Метод

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.
Результат StreamMetadataBuilder

SetMetadataReadRole() публичный Метод

Sets a single role name with metadata read permission for the stream.
public SetMetadataReadRole ( string role ) : StreamMetadataBuilder
role string Role name.
Результат StreamMetadataBuilder

SetMetadataReadRoles() публичный Метод

Sets role names with metadata read permission for the stream.
public SetMetadataReadRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Результат StreamMetadataBuilder

SetMetadataWriteRole() публичный Метод

Sets a single role name with metadata write permission for the stream.
public SetMetadataWriteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Результат StreamMetadataBuilder

SetMetadataWriteRoles() публичный Метод

Sets role names with metadata write permission for the stream.
public SetMetadataWriteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Результат StreamMetadataBuilder

SetReadRole() публичный Метод

Sets a single role name with read permission for the stream.
public SetReadRole ( string role ) : StreamMetadataBuilder
role string Role name.
Результат StreamMetadataBuilder

SetReadRoles() публичный Метод

Sets role names with read permission for the stream.
public SetReadRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Результат StreamMetadataBuilder

SetTruncateBefore() публичный Метод

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.
Результат StreamMetadataBuilder

SetWriteRole() публичный Метод

Sets a single role name with write permission for the stream.
public SetWriteRole ( string role ) : StreamMetadataBuilder
role string Role name.
Результат StreamMetadataBuilder

SetWriteRoles() публичный Метод

Sets role names with write permission for the stream.
public SetWriteRoles ( string roles ) : StreamMetadataBuilder
roles string Role names.
Результат StreamMetadataBuilder