Beispiel #1
0
        public static ICompositeContainerBuilder AddRest(this ICompositeContainerBuilder composite)
        {
            // Add plugin for Rest API support:
            composite.AddPlugin <RestPlugin>();

            return(composite);
        }
Beispiel #2
0
        /// <summary>
        /// Adds the Settings Plugin to the composite container.
        /// </summary>
        /// <param name="composite">Reference to the composite container builder.</param>
        /// <returns>Reference to the composite container builder.</returns>
        public static ICompositeContainerBuilder AddSettings(this ICompositeContainerBuilder composite)
        {
            if (composite == null)
            {
                throw new ArgumentNullException(nameof(composite));
            }

            composite.AddPlugin <SettingsPlugin>();
            return(composite);
        }
Beispiel #3
0
        public static ICompositeContainerBuilder AddWebMvc(this ICompositeContainerBuilder composite,
                                                           Action <WebMvcConfig> configure = null)
        {
            // Add the MVC Plugin:
            composite.AddPlugin <WebMvcPlugin>();

            // Call configure delegate on configuration if specified.
            if (configure != null)
            {
                composite.InitPluginConfig(configure);
            }

            return(composite);
        }
Beispiel #4
0
 /// <summary>
 /// Add messaging plugin used for in-process messaging and that can be extended
 /// by other plugins by registering message-publishers.
 /// </summary>
 /// <param name="composite">Reference to the composite container builder.</param>
 /// <returns>Reference to the composite container builder.</returns>
 public static ICompositeContainerBuilder AddMessaging(this ICompositeContainerBuilder composite)
 {
     return(composite.AddPlugin <MessagingPlugin>());
 }
Beispiel #5
0
 public static ICompositeContainerBuilder AddRoslyn(this ICompositeContainerBuilder composite)
 {
     return(composite.AddPlugin <RoslynPlugin>());
 }
Beispiel #6
0
 public static ICompositeContainerBuilder AddMapping(this ICompositeContainerBuilder composite)
 {
     // Add mapping plugin:
     return(composite.AddPlugin <MappingPlugin>());
 }