Esempio n. 1
0
        public static IMultiClientBuilder AddClient(this IMultiClientBuilder builder, Action <OrleansClientOptions> startup)
        {
            OrleansClientOptions options = new OrleansClientOptions();

            startup.Invoke(options);
            return(builder.AddClient(options));
        }
Esempio n. 2
0
        public static IMultiClientBuilder AddClient(this IMultiClientBuilder builder, IConfiguration config)
        {
            var optionList = config.Get <IList <OrleansClientOptions> >();

            foreach (var options in optionList)
            {
                builder.AddClient(options);
            }
            return(builder);
        }