/// <summary>
        /// Determines whether a service is compatible with T.
        /// </summary>
        /// <param name="service">The service to determine compatibility for.</param>
        /// <returns>True if the service is compatible false otherwise.</returns>
        protected override bool CanCreateAutoServiceFor(Service service)
        {
            CanCreateServiceForEventArgs laArgs = new CanCreateServiceForEventArgs(service);

            OnCanCreateServiceFor(laArgs);
            return(laArgs.CanCreate);
        }
 /// <summary>
 /// Calls the can create service for event.
 /// </summary>
 /// <param name="e">The event arguments.</param>
 protected virtual void OnCanCreateServiceFor(CanCreateServiceForEventArgs e)
 {
     if (CanCreateServiceFor != null)
     {
         CanCreateServiceFor(this, e);
     }
     else
     {
         e.CanCreate = false;
     }
 }