Esempio n. 1
0
        public Task DefaultDisassociate(TestAssociationHandle handle)
        {
            var handlers = _registry.DeregisterAssociation(handle.Key);

            handlers.Item1.Notify(new Disassociated(DisassociateInfo.Unknown));
            handlers.Item2.Notify(new Disassociated(DisassociateInfo.Unknown));

            return(Task.Run(() => { }));
        }
Esempio n. 2
0
        /// <summary>
        /// TBD
        /// </summary>
        /// <param name="handle">TBD</param>
        /// <returns>TBD</returns>
        public Task <bool> DefaultDisassociate(TestAssociationHandle handle)
        {
            var handlers = _registry.DeregisterAssociation(handle.Key);

            if (handlers != null)
            {
                handlers.Item1.Notify(new Disassociated(DisassociateInfo.Unknown));
                handlers.Item2.Notify(new Disassociated(DisassociateInfo.Unknown));
            }

            return(Task.FromResult(true));
        }