public void OnAccessNetworkEvent(object sender, AccessNetworkEventArgs e) { AccessNetworkEventTypes type = e.Type; if (type == AccessNetworkEventTypes.ANET_LOGIN) { ANStatus status = e.Status; if (status == ANStatus.INSERVICE) { new System.Threading.Thread(new System.Threading.ThreadStart(delegate { if (this.serviceManager.ConfigurationService.ContactsCfg.ContactStorageType.ToLower().Equals("remote")) { this.GetRemoteContactsAsync(); } else { this.LoadLocalContacts(); } })).Start(); } } }
public AccessNetworkEventArgs(AccessNetworkEventTypes type, ANStatus status, string phrase) { this.type = type; this.status = status; this.phrase = phrase; }