Beispiel #1
0
        protected override void DisposeManagedResources()
        {
            // WHY: this is really only important for containers that require explicit release of disposable components (Castle)... if
            // people use the AsyncRequestDispatcherFactory to create instances of this class in combination with Castle Windsor, these
            // instances need to be released explicitly because they have been resolved through the container
            if (IoC.Container != null)
            {
                IoC.Container.Release(this);
            }

            if (requestProcessor != null)
            {
                requestProcessor.Dispose();
            }
        }