C# 클래스 GSF.Threading.WeakActionFast

Provides a high speed weak referenced action delegate. This one does not use reflection, so calls will be faster. HOWEVER: a strong reference MUST be maintained for the Action delegate passed to this class. This reference is outputted in the constructor. Careful consideration must be made when deciding where to store this strong reference, as this strong reference will need to also lose reference. A good place would be as a member variable of the object of the target method.
상속: System.WeakReference
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian

공개 메소드들

메소드 설명
Clear ( ) : void
WeakActionFast ( System.Action target, object &localStrongReference ) : System

Creates a high speed weak action

비공개 메소드들

메소드 설명
TryInvoke ( ) : bool

메소드 상세

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

WeakActionFast() 공개 메소드

Creates a high speed weak action
public WeakActionFast ( System.Action target, object &localStrongReference ) : System
target System.Action the callback
localStrongReference object a strong reference that must be /// maintained in the class that is the target of the action
리턴 System