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)); }
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>(); }
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) { }
public static ClusterBuilder WithSimpleReminders(this ClusterBuilder builder) { return(new SimpleReminderDecorator(builder)); }
public static ClusterBuilder WithSimpleStream(this ClusterBuilder builder, string providerName, bool fireAndForget = false) { return(new SimpleStreamDecorator(builder, providerName, fireAndForget)); }