Beispiel #1
0
        private static IConnectionLifetimeManager GetConnectionLifetimeManager(this IConnectionContext context)
        {
            var lifetimeManager = context.GetLifetimeManager();

            if (lifetimeManager == null)
            {
                throw new Exception("Not found connectionLifetimeManager");
            }
            return(lifetimeManager);
        }