示例#1
0
        void OnServiceResolved(object sender, ServiceResolutionEventArgs args)
        {
            if (!(args.Registration is TypeRegistration))
            {
                return;
            }

            OnObjectCreated(args.Instance);
        }
示例#2
0
 void OnServiceResolved(object sender, ServiceResolutionEventArgs args)
 {
     InvokeServiceResolved(sender, args);
 }
示例#3
0
 /// <summary>
 /// Invoker for the <see cref="ServiceResolved"/> event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Arguments.</param>
 protected virtual void InvokeServiceResolved(object sender, ServiceResolutionEventArgs args)
 {
     ServiceResolved?.Invoke(sender, args);
 }
示例#4
0
 /// <summary>
 /// Invoker for the <see cref="ServiceResolved"/> event.
 /// </summary>
 /// <param name="args">Arguments.</param>
 protected virtual void InvokeServiceResolved(ServiceResolutionEventArgs args)
 {
     ServiceResolved?.Invoke(this, args);
 }
示例#5
0
        /// <summary>
        /// Invoker for the <see cref="ServiceResolved"/> event.
        /// </summary>
        /// <param name="registration">Registration.</param>
        /// <param name="instance">Instance.</param>
        protected virtual void InvokeServiceResolved(IServiceRegistration registration, object instance)
        {
            var args = new ServiceResolutionEventArgs(registration, instance);

            InvokeServiceResolved(args);
        }