public async ValueTask <IWeChatOfficialOptions> ResolveAsync()
        {
            using (var scope = _serviceProvider.CreateScope())
            {
                var context = new WeChatOfficialResolveContext(scope.ServiceProvider);

                foreach (var contributor in _options.WeChatOfficialOptionsResolveContributors)
                {
                    await contributor.ResolveAsync(context);

                    if (context.Options != null)
                    {
                        return(context.Options);
                    }
                }
            }

            return(new AbpWeChatOfficialOptions());
        }
        public IWeChatOfficialOptions Resolve()
        {
            using (var serviceScope = _serviceProvider.CreateScope())
            {
                var context = new WeChatOfficialResolveContext(serviceScope.ServiceProvider);

                foreach (var resolver in _options.WeChatOfficialOptionsResolveContributors)
                {
                    resolver.Resolve(context);

                    if (context.Options != null)
                    {
                        return(context.Options);
                    }
                }
            }

            return(new AbpWeChatOfficialOptions());
        }
        public ValueTask ResolveAsync(WeChatOfficialResolveContext context)
        {
            context.Options = context.ServiceProvider.GetRequiredService <IOptions <AbpWeChatOfficialOptions> >().Value;

            return(new ValueTask());
        }
 public void Resolve(WeChatOfficialResolveContext context)
 {
     context.Options = context.ServiceProvider.GetRequiredService <IOptions <AbpWeChatOfficialOptions> >().Value;
 }