Exemplo n.º 1
0
        public Task CloseAsync()
        {
            ClientEntity clientEntity = this;

            return(TaskHelpers.CreateTask(new Func <AsyncCallback, object, IAsyncResult>(this.BeginClose), new Action <IAsyncResult>(clientEntity.EndClose)));
        }
 private void RegisterMessageClientEntity(ClientEntity child)
 {
     base.ClientEntityManager.Add(child);
 }
 public CallbackState(CloseEntityCollectionAsyncResult asyncResult, ClientEntity data)
 {
     this.AsyncResult = asyncResult;
     this.AsyncData   = data;
 }