WCF技术黑幕 第6章(2)
WCF技术内幕 第6章(2)CommunicationObject子类型MyCommunicationObject myCommObject new MyCommunicati
WCF技术内幕 第6章(2)
CommunicationObject子类型
MyCommunicationObject myCommObject = new MyCommunicationObject(); myCommObject.Open();
CommunicationObject:检查状态是否可以转换为OpenMyCommunicationObject:调用虚方法OnOpeningCommunicationObject:激活Opening事件,调用委托方法MyCommunication:调用OnOpen方法MyCommunication:调用OnOpened方法CommunicationObject:状态转换为OpenedCommunicationObject:激活Opened方法,调用委托方法