Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the TokenStore class.
 /// </summary>
 /// <param name="enabled">&lt;code&gt;true&lt;/code&gt; to durably
 /// store platform-specific security tokens that are obtained during
 /// login flows; otherwise, &lt;code&gt;false&lt;/code&gt;.
 /// The default is &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="tokenRefreshExtensionHours">The number of hours after
 /// session token expiration that a session token can be used to
 /// call the token refresh API. The default is 72 hours.</param>
 /// <param name="fileSystem">The configuration settings of the storage
 /// of the tokens if a file system is used.</param>
 /// <param name="azureBlobStorage">The configuration settings of the
 /// storage of the tokens if blob storage is used.</param>
 public TokenStore(bool?enabled = default(bool?), double?tokenRefreshExtensionHours = default(double?), FileSystemTokenStore fileSystem = default(FileSystemTokenStore), BlobStorageTokenStore azureBlobStorage = default(BlobStorageTokenStore))
 {
     Enabled = enabled;
     TokenRefreshExtensionHours = tokenRefreshExtensionHours;
     FileSystem       = fileSystem;
     AzureBlobStorage = azureBlobStorage;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the TokenStore class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource Name.</param>
 /// <param name="kind">Kind of resource.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="enabled">&lt;code&gt;true&lt;/code&gt; to durably
 /// store platform-specific security tokens that are obtained during
 /// login flows; otherwise, &lt;code&gt;false&lt;/code&gt;.
 /// The default is &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="tokenRefreshExtensionHours">The number of hours after
 /// session token expiration that a session token can be used to
 /// call the token refresh API. The default is 72 hours.</param>
 /// <param name="fileSystem">The configuration settings of the storage
 /// of the tokens if a file system is used.</param>
 /// <param name="azureBlobStorage">The configuration settings of the
 /// storage of the tokens if blob storage is used.</param>
 public TokenStore(string id = default(string), string name = default(string), string kind = default(string), string type = default(string), bool?enabled = default(bool?), double?tokenRefreshExtensionHours = default(double?), FileSystemTokenStore fileSystem = default(FileSystemTokenStore), BlobStorageTokenStore azureBlobStorage = default(BlobStorageTokenStore))
     : base(id, name, kind, type)
 {
     Enabled = enabled;
     TokenRefreshExtensionHours = tokenRefreshExtensionHours;
     FileSystem       = fileSystem;
     AzureBlobStorage = azureBlobStorage;
     CustomInit();
 }