Share via


NotificationOptions.Storage Property

Definition

Caution

Use Store to customize the way to persist bot notification target references instead.

An optional storage to persist bot notification target references.

[System.Obsolete("Use Store to customize the way to persist bot notification target references instead.")]
public Microsoft.TeamsFx.Conversation.INotificationTargetStorage Storage { get; set; }
[<System.Obsolete("Use Store to customize the way to persist bot notification target references instead.")>]
member this.Storage : Microsoft.TeamsFx.Conversation.INotificationTargetStorage with get, set
Public Property Storage As INotificationTargetStorage

Property Value

Attributes

Remarks

If Storage is not provided, a default local file storage will be used, which stores notification target references into:

  • "{$env:TEAMSFX_NOTIFICATION_LOCALSTORE_DIR}/.notification.localstore.json" if running locally.
  • "{$env:TEMP}/.notification.localstore.json" if {$env:RUNNING_ON_AZURE} is set to "1".
  • "{CurrentDirectory}/.notification.localstore.json" if all above environment variables are not set.

It's recommended to use your own shared storage for production environment.

Applies to