C# 클래스 Senparc.Weixin.MessageQueue.SenparcMessageQueue

消息列队
파일 보기 프로젝트 열기: JeffreySu/WeiXinMPSDK 1 사용 예제들

공개 메소드들

메소드 설명
Add ( string key, System.Action action ) : SenparcMessageQueueItem

添加列队成员

GenerateKey ( string name, Type senderType, string identityKey, string actionName ) : string

生成Key

GetCount ( ) : int

获得当前列队数量

GetCurrentKey ( ) : string

获取当前等待执行的Key

GetItem ( string key ) : SenparcMessageQueueItem

获取SenparcMessageQueueItem

OperateQueue ( ) : void

操作列队

Remove ( string key ) : void

移除列队成员

메소드 상세

Add() 공개 메소드

添加列队成员
public Add ( string key, System.Action action ) : SenparcMessageQueueItem
key string
action System.Action
리턴 SenparcMessageQueueItem

GenerateKey() 공개 정적인 메소드

生成Key
public static GenerateKey ( string name, Type senderType, string identityKey, string actionName ) : string
name string 列队应用名称,如“ContainerBag”
senderType System.Type 操作对象类型
identityKey string 对象唯一标识Key
actionName string 操作名称,如“UpdateContainerBag”
리턴 string

GetCount() 공개 메소드

获得当前列队数量
public GetCount ( ) : int
리턴 int

GetCurrentKey() 공개 메소드

获取当前等待执行的Key
public GetCurrentKey ( ) : string
리턴 string

GetItem() 공개 메소드

获取SenparcMessageQueueItem
public GetItem ( string key ) : SenparcMessageQueueItem
key string
리턴 SenparcMessageQueueItem

OperateQueue() 공개 정적인 메소드

操作列队
public static OperateQueue ( ) : void
리턴 void

Remove() 공개 메소드

移除列队成员
public Remove ( string key ) : void
key string
리턴 void