Esempio n. 1
0
        /// Protected implementation of Dispose pattern.
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                // Free any other managed objects here.
                _loggingInterceptor.Dispose();
                _loggingInterceptor = null;
            }

            // Free any unmanaged objects here.
            //
            _disposed = true;
        }
Esempio n. 2
0
 /// <summary>
 /// Derived classes implement this method. When called, it
 /// creates a new call handler as specified in the attribute
 /// configuration.
 /// </summary>
 /// <param name="container">The <see cref="T:Microsoft.Practices.Unity.IUnityContainer" /> to use when creating handlers,
 /// if necessary.</param>
 /// <returns>
 /// A new call handler object.
 /// </returns>
 public override ICallHandler CreateHandler(IUnityContainer container)
 {
     _loggingInterceptor = new LoggingInterceptor();
     return(_loggingInterceptor);
 }