ChannelCacheSettings 클래스

정의

채널 캐시의 작동 특성을 정의하는 설정을 나타냅니다.

public ref class ChannelCacheSettings
public class ChannelCacheSettings
type ChannelCacheSettings = class
Public Class ChannelCacheSettings
상속
ChannelCacheSettings

예제

다음 예제에서는 인스턴스를 만드는 방법을 보여 줍니다 ChannelCacheSettings .


//sharing a channel cache between two workflow applications in a single app-domain.
sharedChannelCache = new SendMessageChannelCache(new ChannelCacheSettings { MaxItemsInCache = 5 }, new ChannelCacheSettings { MaxItemsInCache = 5 });

WorkflowApplication workflowApp1 = new WorkflowApplication(workflow);
workflowApp1.Completed = new Action<WorkflowApplicationCompletedEventArgs>(OnCompleted);
workflowApp1.Extensions.Add(sharedChannelCache);

WorkflowApplication workflowApp2 = new WorkflowApplication(workflow);
workflowApp2.Completed = new Action<WorkflowApplicationCompletedEventArgs>(OnCompleted);
workflowApp2.Extensions.Add(sharedChannelCache);

//disabling the channel cache so that channels are closed after being used.
SendMessageChannelCache disabledChannelCache = new SendMessageChannelCache(new ChannelCacheSettings { MaxItemsInCache = 0 }, new ChannelCacheSettings { MaxItemsInCache = 0 });

WorkflowApplication workflowApp3 = new WorkflowApplication(workflow);
workflowApp3.Completed = new Action<WorkflowApplicationCompletedEventArgs>(OnCompleted);
workflowApp3.Extensions.Add(disabledChannelCache);

생성자

Name Description
ChannelCacheSettings()

클래스의 새 인스턴스를 ChannelCacheSettings 만듭니다.

속성

Name Description
IdleTimeout

삭제되기 전에 개체가 캐시에서 유휴 상태로 유지될 수 있는 최대 시간 간격을 가져옵니다.

LeaseTimeout

캐시에서 개체가 제거된 후의 시간 간격을 가져옵니다.

MaxItemsInCache

캐시에 있을 수 있는 최대 개체 수를 가져옵니다.

메서드

Name Description
Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상