one question about threading# DotNet - 窗口里的风景
f*e
1 楼
I have a third party dll which need to be initialized in my class. that dll
provides only async initialization solution. That is the dll provide a
constructor which returns immediately with newly created instance. Then it
begins to initialize its internal components. After
finishes, it fires OnReady event. I have to wait to receive that event in
order to get full functionalities. Here is an example:
Class1
{
private ThirdPartyComp theComp;
public void Initialize()
{
theComp
provides only async initialization solution. That is the dll provide a
constructor which returns immediately with newly created instance. Then it
begins to initialize its internal components. After
finishes, it fires OnReady event. I have to wait to receive that event in
order to get full functionalities. Here is an example:
Class1
{
private ThirdPartyComp theComp;
public void Initialize()
{
theComp