Ejemplo n.º 1
0
        /// <summary>
        /// 添加极光推送
        /// </summary>
        /// <param name="services">The services.</param>
        /// <returns></returns>
        public static IJPushBuilder AddJPush(this IServiceCollection services)
        {
            IJPushBuilder builder = new JPushBuilder(services);

            builder.AddJPushClient();

            return(builder);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 添加极光推送
        /// </summary>
        /// <param name="services">The services.</param>
        /// <returns></returns>
        private static IJPushBuilder addJPush(this IServiceCollection services)
        {
            IOptionsProvider oProvider = new OptionsProvider();
            IJPushBuilder    builder   = new JPushBuilder(services, oProvider);

            builder.AddJPushClient();

            return(builder);
        }