Class BlueskyAgentOptions
- Namespace
- idunno.Bluesky
- Assembly
- idunno.Bluesky.dll
Options for configuring a Bluesky agent.
public class BlueskyAgentOptions : AtProtoAgentOptionsInheritance
-
AtProtoAgentOptions
Inherited Members
-
AtProtoAgentOptions.AtProtoAgentAtProtoAgentOptions.LoggerFactoryAtProtoAgentOptions.EnableBackgroundTokenRefreshAtProtoAgentOptions.PlcDirectoryServerAtProtoAgentOptions.HttpJsonOptionsAtProtoAgentOptions.OAuthOptionsAtProtoAgentOptions.HttpClientOptionsAtProtoAgentOptions.MaximumWellKnownResponseSizeAtProtoAgentOptions.MaximumResponseSize
Constructors
BlueskyAgentOptions()
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions
public BlueskyAgentOptions()BlueskyAgentOptions(ILoggerFactory?, bool, Uri?, IFacetExtractor?, OAuthOptions?, HttpClientOptions?, JsonOptions?)
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions"/>
public BlueskyAgentOptions(ILoggerFactory? loggerFactory, bool enableBackgroundTokenRefresh = true, Uri? publicAppViewUri = null, IFacetExtractor? facetExtractor = null, OAuthOptions? oAuthOptions = null, HttpClientOptions? httpClientOptions = null, JsonOptions? httpJsonOptions = null)Parameters
loggerFactoryILoggerFactory?-
The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.
enableBackgroundTokenRefreshbool-
Flag indicating whether credential refreshes should happen in the background.
publicAppViewUriUri?-
The service URI to use when making calls that to not require authentication
facetExtractorIFacetExtractor?-
The facet extractor to use when extracting facets from post or message texts.
oAuthOptionsOAuthOptions?-
Any idunno.AtProto.Authentication.OAuthOptions for the agent.
httpClientOptionsHttpClientOptions?-
The HttpClient options for the agent.
httpJsonOptionsJsonOptions?-
Any idunno.AtProto.JsonOptions to use during serialization and deserialization.
BlueskyAgentOptions()
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions
public BlueskyAgentOptions()BlueskyAgentOptions(ILoggerFactory?, bool, Uri?, IFacetExtractor?, OAuthOptions?, HttpClientOptions?, JsonOptions?)
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions"/>
public BlueskyAgentOptions(ILoggerFactory? loggerFactory, bool enableBackgroundTokenRefresh = true, Uri? publicAppViewUri = null, IFacetExtractor? facetExtractor = null, OAuthOptions? oAuthOptions = null, HttpClientOptions? httpClientOptions = null, JsonOptions? httpJsonOptions = null)Parameters
loggerFactoryILoggerFactory?-
The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.
enableBackgroundTokenRefreshbool-
Flag indicating whether credential refreshes should happen in the background.
publicAppViewUriUri?-
The service URI to use when making calls that to not require authentication
facetExtractorIFacetExtractor?-
The facet extractor to use when extracting facets from post or message texts.
oAuthOptionsOAuthOptions?-
Any idunno.AtProto.Authentication.OAuthOptions for the agent.
httpClientOptionsHttpClientOptions?-
The HttpClient options for the agent.
httpJsonOptionsJsonOptions?-
Any idunno.AtProto.JsonOptions to use during serialization and deserialization.
BlueskyAgentOptions()
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions
public BlueskyAgentOptions()BlueskyAgentOptions(ILoggerFactory?, bool, Uri?, IFacetExtractor?, OAuthOptions?, HttpClientOptions?, JsonOptions?)
Creates a new instance of idunno.Bluesky.BlueskyAgentOptions"/>
public BlueskyAgentOptions(ILoggerFactory? loggerFactory, bool enableBackgroundTokenRefresh = true, Uri? publicAppViewUri = null, IFacetExtractor? facetExtractor = null, OAuthOptions? oAuthOptions = null, HttpClientOptions? httpClientOptions = null, JsonOptions? httpJsonOptions = null)Parameters
loggerFactoryILoggerFactory?-
The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.
enableBackgroundTokenRefreshbool-
Flag indicating whether credential refreshes should happen in the background.
publicAppViewUriUri?-
The service URI to use when making calls that to not require authentication
facetExtractorIFacetExtractor?-
The facet extractor to use when extracting facets from post or message texts.
oAuthOptionsOAuthOptions?-
Any idunno.AtProto.Authentication.OAuthOptions for the agent.
httpClientOptionsHttpClientOptions?-
The HttpClient options for the agent.
httpJsonOptionsJsonOptions?-
Any idunno.AtProto.JsonOptions to use during serialization and deserialization.
Fields
BlueskyAgent
Configuration Provider Key
public const string BlueskyAgent = "BlueskyAgent"Field Value
BlueskyAgent
Configuration Provider Key
public const string BlueskyAgent = "BlueskyAgent"Field Value
BlueskyAgent
Configuration Provider Key
public const string BlueskyAgent = "BlueskyAgent"Field Value
Properties
DraftMediaRoots
Gets or sets the directories draft media may be read from when a draft is posted.
public IList<string> DraftMediaRoots { get; }Property Value
Remarks
The local paths in a draft's media embeds come from the service the agent is connected to and should be treated as untrusted input. When a draft is posted with idunno.Bluesky.Drafts.DraftMediaPathValidation.Enforce every media path must resolve to a location inside one of these directories before the file it points to is read and uploaded.
Relative entries are resolved against the current working directory when the agent is created. If this is empty posting a draft which contains media fails unless idunno.Bluesky.Drafts.DraftMediaPathValidation.Trust is specified.
DraftMediaRoots
Gets or sets the directories draft media may be read from when a draft is posted.
public IList<string> DraftMediaRoots { get; }Property Value
Remarks
The local paths in a draft's media embeds come from the service the agent is connected to and should be treated as untrusted input. When a draft is posted with idunno.Bluesky.Drafts.DraftMediaPathValidation.Enforce every media path must resolve to a location inside one of these directories before the file it points to is read and uploaded.
Relative entries are resolved against the current working directory when the agent is created. If this is empty posting a draft which contains media fails unless idunno.Bluesky.Drafts.DraftMediaPathValidation.Trust is specified.
DraftMediaRoots
Gets or sets the directories draft media may be read from when a draft is posted.
public IList<string> DraftMediaRoots { get; }Property Value
Remarks
The local paths in a draft's media embeds come from the service the agent is connected to and should be treated as untrusted input. When a draft is posted with idunno.Bluesky.Drafts.DraftMediaPathValidation.Enforce every media path must resolve to a location inside one of these directories before the file it points to is read and uploaded.
Relative entries are resolved against the current working directory when the agent is created. If this is empty posting a draft which contains media fails unless idunno.Bluesky.Drafts.DraftMediaPathValidation.Trust is specified.
FacetExtractor
Gets or sets the facet extractor to use when extracting facets from post or message texts.
public IFacetExtractor? FacetExtractor { get; set; }Property Value
FacetExtractor
Gets or sets the facet extractor to use when extracting facets from post or message texts.
public IFacetExtractor? FacetExtractor { get; set; }Property Value
FacetExtractor
Gets or sets the facet extractor to use when extracting facets from post or message texts.
public IFacetExtractor? FacetExtractor { get; set; }Property Value
PublicAppViewUri
Gets or sets the service uri used when making calls to APIs that do not require authentication, as documented in the Bluesky API documentation.
public Uri PublicAppViewUri { get; set; }Property Value
- Uri
PublicAppViewUri
Gets or sets the service uri used when making calls to APIs that do not require authentication, as documented in the Bluesky API documentation.
public Uri PublicAppViewUri { get; set; }Property Value
- Uri
PublicAppViewUri
Gets or sets the service uri used when making calls to APIs that do not require authentication, as documented in the Bluesky API documentation.
public Uri PublicAppViewUri { get; set; }Property Value
- Uri