public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
            {
                var testclusterOptions = configuration.GetTestClusterOptions();


                clientBuilder.AddSimpleMessageStreamProvider(name: "stuff", options => options.FireAndForgetDelivery = false);
                clientBuilder.AddElasticsearchTelemetryConsumer(ESEndpoint);
            }
Exemplo n.º 2
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider("SMSProvider")
     .AddSqsStreams("SQSProvider", options =>
     {
         options.ConnectionString = AWSTestConstants.DefaultSQSConnectionString;
     });
 }
        public static IClientBuilder UseSignalR(this IClientBuilder builder,
                                                bool fireAndForgetDelivery = SimpleMessageStreamProviderOptions.DEFAULT_VALUE_FIRE_AND_FORGET_DELIVERY)
        {
            builder.AddSimpleMessageStreamProvider(OrleansSignalRConstants.StreamProviderName,
                                                   options => { options.FireAndForgetDelivery = fireAndForgetDelivery; })
            .ConfigureApplicationParts(manager => { manager.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences(); });

            return(builder);
        }
Exemplo n.º 4
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.ConfigureApplicationParts(parts =>
     {
         GridConfigurationHelper.AddClientApplicationParts(parts);
         parts.AddApplicationPart(typeof(ITestSpatialGrain).Assembly);
     });
     clientBuilder.AddSimpleMessageStreamProvider(Constants.StreamProviderName);
 }
Exemplo n.º 5
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider("SMSProvider")
     .AddSqsStreams("SQSProvider", (System.Action <Orleans.Configuration.SqsOptions>)(options =>
     {
         options.ConnectionString = AWSTestConstants.SqsConnectionString;
     }));
 }
Exemplo n.º 6
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider(SmsStreamProviderName)
     .AddAzureQueueStreams <AzureQueueDataAdapterV2>(AzureQueueStreamProviderName, ob => ob.Configure(
                                                         options =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }));
 }
Exemplo n.º 7
0
        public static IClientBuilder UseSignalR(this IClientBuilder builder, SignalrClientConfig config = null)
        {
            if (config == null)
            {
                config = new SignalrClientConfig();
            }

            return(builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER, opt => opt.FireAndForgetDelivery = config.UseFireAndForgetDelivery)
                   .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences()));
        }
Exemplo n.º 8
0
        public void Configure(IConfiguration configuration, IClientBuilder hostBuilder)
        {
            hostBuilder
            .AddSimpleMessageStreamProvider(InterfaceConst.SMSProvider);

            hostBuilder.ConfigureServices(services =>
            {
                services.AddEventStoreService();
                services.AddAggregateServices();
            });
        }
Exemplo n.º 9
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider(SmsStreamProviderName)
     .AddAzureQueueStreams(AzureQueueStreamProviderName, ob => ob.Configure <IOptions <ClusterOptions> >(
                               (options, dep) =>
     {
         options.ConfigureTestDefaults();
         options.QueueNames = AzureQueueUtilities.GenerateQueueNames(dep.Value.ClusterId, queueCount);
     }));
 }
Exemplo n.º 10
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider("SMSProvider")
     .AddPubSubStreams <PubSubDataAdapter>(PUBSUB_STREAM_PROVIDER_NAME, b =>
                                           b.ConfigurePubSub(ob => ob.Configure(options =>
     {
         options.ProjectId = GoogleTestUtils.ProjectId;
         options.TopicId   = GoogleTestUtils.TopicId;
         options.Deadline  = TimeSpan.FromSeconds(600);
     })));
 }
Exemplo n.º 11
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddSimpleMessageStreamProvider(SmsStreamProviderName)
     .AddAzureQueueStreams <AzureQueueDataAdapterV2>(AzureQueueStreamProviderName, b =>
                                                     b.ConfigureAzureQueue(ob => ob.Configure <IOptions <ClusterOptions> >(
                                                                               (options, dep) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
         options.QueueNames       = AzureQueueUtilities.GenerateQueueNames(dep.Value.ClusterId, queueCount);
     })));
 }
        public static IClientBuilder UseSignalR(this IClientBuilder builder, Action <OrleansSignalRClientOptions> configure = null)
        {
            var clientOptions = new OrleansSignalRClientOptions();

            configure?.Invoke(clientOptions);

            builder.AddSimpleMessageStreamProvider(OrleansSignalRConstants.StreamProviderName,
                                                   options => { options.FireAndForgetDelivery = clientOptions.FireAndForgetDelivery; })
            .ConfigureApplicationParts(manager => { manager.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences(); });

            return(builder);
        }
 internal static IClientBuilder Configure(IClientBuilder clientBuilder)
 {
     return(clientBuilder.AddSimpleMessageStreamProvider(IndexingConstants.INDEXING_STREAM_PROVIDER_NAME)
            .ConfigureLogging(loggingBuilder =>
     {
         loggingBuilder.SetMinimumLevel(LogLevel.Information);
         loggingBuilder.AddDebug();
     })
            .ConfigureApplicationParts(parts =>
     {
         parts.AddApplicationPart(typeof(BaseIndexingFixture).Assembly);
         parts.AddApplicationPart(typeof(ISimpleGrain).Assembly);
         parts.AddApplicationPart(typeof(SimpleGrain).Assembly);
     }));
 }
Exemplo n.º 14
0
        public static IClientBuilder AddSignalR(this IClientBuilder builder, Action <SimpleMessageStreamProviderOptions> configureOptions)
        {
            builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER, configureOptions)
            .ConfigureApplicationParts(manager =>
            {
                manager.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences();
            });

            builder.ConfigureServices(services =>
            {
                services.TryAddSingleton(typeof(IClientSetPartitioner <>), typeof(DefaultClientSetPartitioner <>));
            });

            return(builder);
        }
Exemplo n.º 15
0
        public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
        {
            clientBuilder.AddSimpleMessageStreamProvider(StreamProviderName.Default);
            clientBuilder.ConfigureAppConfiguration((config) =>
            {
                config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false);

                var dic = new Dictionary <string, string>();

                string fileName = "publicsetting.xml";
                string path     = string.Empty;
                if ((Environment.OSVersion.Platform == PlatformID.Unix) || (Environment.OSVersion.Platform == PlatformID.MacOSX))
                {
                    //str = string.Format(@"{0}/{1}", System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase, fileName);
                    path = '/' + fileName;
                }
                else
                {
                    path = AppDomain.CurrentDomain.BaseDirectory.Replace("\\", "/") + "/" + fileName;
                }

                if (File.Exists(path))
                {
                    XDocument xd = new XDocument();
                    xd           = XDocument.Load(path);
                    XElement ps  = xd.Element("PublicSetting");
                    XElement sys = ps.Element("System");

                    string vip = sys.Element("Sys_VIP").Value;
                    dic.Add("VIP", vip);
                    dic.Add("IngestDBSvr", CreateConfigURI(sys.Element("IngestDBSvr").Value));
                    dic.Add("IngestDEVCTL", CreateConfigURI(sys.Element("IngestDEVCTL").Value));
                    dic.Add("CMWindows", CreateConfigURI(sys.Element("CMserver_windows").Value));
                    dic.Add("CMServer", CreateConfigURI(sys.Element("CMServer").Value));
                    config.AddInMemoryCollection(dic);
                }
            });
        }
Exemplo n.º 16
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddSimpleMessageStreamProvider(StreamTestsConstants.SMS_STREAM_PROVIDER_NAME);
 }
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddSimpleMessageStreamProvider(StreamProvider);
 }
 /// <summary>
 /// Configure cluster to use indexing using a configuration builder.
 /// </summary>
 public static IClientBuilder UseIndexing(this IClientBuilder builder, Action <OptionsBuilder <IndexingOptions> > configureAction = null)
 {
     return(builder.AddSimpleMessageStreamProvider(IndexingConstants.INDEXING_STREAM_PROVIDER_NAME)
            .ConfigureServices(services => services.UseIndexing(configureAction))
            .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(SiloBuilderExtensions).Assembly)));
 }
 /// <summary>
 /// For use with Orleans Clients, this wires-up the required items for clients to talk with Device grains.
 /// </summary>
 public static IClientBuilder UseMqtt(this IClientBuilder builder, bool useFireAndForgetDelivery = false)
 {
     return(builder.AddSimpleMessageStreamProvider(OrleansMqttConstants.StreamProvider, opt => opt.FireAndForgetDelivery = useFireAndForgetDelivery)
            .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IDeviceGrain).Assembly).WithReferences()));
 }
Exemplo n.º 20
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddSimpleMessageStreamProvider(Constants.StreamProviderName, options => options.FireAndForgetDelivery = true);
 }
Exemplo n.º 21
0
 public static IClientBuilder UseSignalR(this IClientBuilder builder, bool useFireAndForgetDelivery = false)
 {
     return(builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER, opt => opt.FireAndForgetDelivery = useFireAndForgetDelivery)
            .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences()));
 }
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder) =>
 clientBuilder.AddSimpleMessageStreamProvider(StreamProviderName.Default);
Exemplo n.º 23
0
 public static IClientBuilder UseSignalR(this IClientBuilder builder)
 {
     return(builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER)
            .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences())
            .ConfigureServices(services => services.AddSingleton(typeof(HubLifetimeManager <>), typeof(OrleansHubLifetimeManager <>))));
 }
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddSimpleMessageStreamProvider(StreamProviderName, options => options.PubSubType = StreamPubSubType.ImplicitOnly);
 }