public object GetInstance(InstanceContext instanceContext, Message message)
        {
            CoeveryInstanceContext item = new CoeveryInstanceContext(_workContextAccessor);

            instanceContext.Extensions.Add(item);
            return(item.Resolve(_componentRegistration));
        }
        public void ReleaseInstance(InstanceContext instanceContext, object instance)
        {
            CoeveryInstanceContext context = instanceContext.Extensions.Find <CoeveryInstanceContext>();

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