Ejemplo n.º 1
0
 public static WardenConfiguration.Builder AddAzureStorageWatcher(this WardenConfiguration.Builder builder, string name,
                                                                  string connectionString, Action <WatcherHooksConfiguration.Builder> hooks = null, TimeSpan?interval = null,
                                                                  string group = null)
 {
     builder.AddWatcher(AzureStorageWatcher.Create(name, connectionString, @group: group), hooks, interval);
     return(builder);
 }
 public static AzureStorageWatcherCheckResult Create(AzureStorageWatcher watcher, bool isValid,
                                                     CloudStorageAccount storageAccount, string description = "")
 => new AzureStorageWatcherCheckResult(watcher, isValid, description, storageAccount);
 public AzureStorageWatcherCheckResult(AzureStorageWatcher watcher, bool isValid, string description, CloudStorageAccount storageAccount) : base(watcher, isValid, description)
 {
     StorageAccount = storageAccount;
 }