Example #1
0
        void IComponentExtension.Apply(Component component, ComponentRegistration registration)
        {
            if (string.IsNullOrEmpty(startMethod) == false)
            {
                registration.StartUsingMethod(startMethod);
            }

            if (string.IsNullOrEmpty(stopMethod) == false)
            {
                registration.StopUsingMethod(stopMethod);
            }
        }
        void IComponentExtension.Apply(Component component, ComponentRegistration registration)
        {
            if (!string.IsNullOrEmpty(startMethod))
            {
                registration.StartUsingMethod(startMethod);
            }

            if (!string.IsNullOrEmpty(stopMethod))
            {
                registration.StopUsingMethod(stopMethod);
            }
        }