开发者

Callbacks in Composite Application Block

below code sa开发者_如何学JAVAys I can not convert from void to bool, thats ok but how can I define a callback for a fired event in CAB ?

internal bool IsÖrtlichkeitFocused()
    {
      return this.WorkItem.EventTopics[EventTopicNames.IsOertlichkeitFocusChanged].Fire(this, new EventArgs<bool?>(null), this.WorkItem, PublicationScope.WorkItem);             
    }


try this [EventSubscription(EventTopicNames.IsOertlichkeitFocusChanged, ThreadOption.WorkItem)] public void IsÖrtlichkeitFocusedEventHandler(object sender, EventArgs e) { //do something }

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜