C# 클래스 EventStore.ClientAPI.StreamMetadataBuilder

Builder for StreamMetadata.
파일 보기 프로젝트 열기: EventStore/EventStore 1 사용 예제들

공개 메소드들

메소드 설명
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