コード例 #1
0
        /// <summary>
        /// Adds Event Server
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IEventServerBuilder AddEventServer(this IServiceCollection services)
        {
            var builder = new EventServerBuilder(services);

            builder.AddCoreServices();
            builder.AddDefaultServices();
            return(builder);
        }
コード例 #2
0
        /// <summary>
        /// Adds Event Server
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IEventServerBuilder AddEventServer(this IServiceCollection services, Action <EventServerOptions> configureAction)
        {
            services.Configure(configureAction);
            var builder = new EventServerBuilder(services);

            builder.AddCoreServices();
            builder.AddDefaultServices();
            return(builder);
        }