private void UnregisterDisconnectionNotifier(object sender)
        {
            ICallbackDisconnectionNotifier notifier = sender as ICallbackDisconnectionNotifier;

            if (notifier != null)
            {
                notifier.Disconnected -= OnCallbackDisconnected;
            }
        }
        private void RegisterDisconnectionNotifier(IWampRawRpcOperationRouterCallback callback)
        {
            ICallbackDisconnectionNotifier notifier = callback as ICallbackDisconnectionNotifier;

            if (notifier != null)
            {
                notifier.Disconnected += OnCallbackDisconnected;
            }
        }