Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
 public AccessNetworkEventArgs(AccessNetworkEventTypes type, ANStatus status, string phrase)
 {
     this.type   = type;
     this.status = status;
     this.phrase = phrase;
 }