C# 클래스 DataMigration.AbstractBaseExistence

A base class for existence objects that can use a C# HashSet for their implementation. Child classes usually just implement Init() to populate the HashSet, or they can leave it empty; plan-specific existence objects can use this mechanism to implement a first-writer-wins de-duping strategry on feed data items.
상속: IExistence
파일 보기 프로젝트 열기: scoutmedia/DataMigration

보호된 프로퍼티들

프로퍼티 타입 설명
Values HashSet

공개 메소드들

메소드 설명
Add ( string value ) : void

Adds a single value to the IExistence collection.

Exists ( string value ) : bool

Determines if an external value exists in the collection.

Init ( ) : void

This is essentially a two-phase ctor. The sequence of construction is, instantiate the object, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. In this abstract class, this method is not implemented (by design). It's up to concrete child classes to implement this, depending on their context.

메소드 상세

Add() 공개 메소드

Adds a single value to the IExistence collection.
public Add ( string value ) : void
value string Value.
리턴 void

Exists() 공개 메소드

Determines if an external value exists in the collection.
public Exists ( string value ) : bool
value string Value to check existence for.
리턴 bool

Init() 공개 메소드

This is essentially a two-phase ctor. The sequence of construction is, instantiate the object, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. In this abstract class, this method is not implemented (by design). It's up to concrete child classes to implement this, depending on their context.
public Init ( ) : void
리턴 void

프로퍼티 상세

Values 보호되어 있는 프로퍼티

The Values HashSet is used to implement this Exists object.
protected HashSet Values
리턴 HashSet