Exemple #1
0
        public static ClusterBuilder WithSimpleStorage(this ClusterBuilder builder, string providerName, int numberStorageGrains = MemoryStorage.NumStorageGrainsDefaultValue)
        {
            var config = new Dictionary <string, string> {
                { MemoryStorage.NumStorageGrainsPropertyName, numberStorageGrains.ToString() }
            };

            return(new ClusterStorageDecorator <MemoryStorage>(builder, providerName, config));
        }
Exemple #2
0
 public EventHubStreamDecorator(ClusterBuilder builder, string providerName, string path, string hubConnectionString, string checkpointConnectionString, string checkpointNamespace, string checkpointTableName = "OrleansEventHubCheckpoint", string consumerGroup = "$Default", int checkpointIntervalSeconds = 5)
     : base(builder)
 {
     _providerName               = providerName;
     _path                       = path;
     _hubConnectionString        = hubConnectionString;
     _checkpointConnectionString = checkpointConnectionString;
     _checkpointTableName        = checkpointTableName;
     _checkpointNamespace        = checkpointNamespace;
     _consumerGroup              = consumerGroup;
     _checkpointInterval         = TimeSpan.FromSeconds(checkpointIntervalSeconds);
 }
 public ClusterStorageDecorator(ClusterBuilder builder, string providerName, IDictionary <string, string> config = null)
     : base(builder)
 {
     _providerName = providerName ?? throw new ArgumentNullException(nameof(providerName));
     _config       = config ?? new Dictionary <string, string>();
 }
Exemple #4
0
 public SimpleStreamDecorator(ClusterBuilder builder, string providerName, bool fireAndForget = false)
     : base(builder)
 {
     _providerName  = providerName ?? throw new ArgumentNullException(nameof(providerName));
     _fireAndForget = fireAndForget;
 }
 public SimpleReminderDecorator(ClusterBuilder builder)
     : base(builder)
 {
 }
Exemple #6
0
 public static ClusterBuilder WithSimpleReminders(this ClusterBuilder builder)
 {
     return(new SimpleReminderDecorator(builder));
 }
Exemple #7
0
 public static ClusterBuilder WithSimpleStream(this ClusterBuilder builder, string providerName, bool fireAndForget = false)
 {
     return(new SimpleStreamDecorator(builder, providerName, fireAndForget));
 }