Table of Contents

Class BlueskyAgentOptions

Namespace
idunno.Bluesky
Assembly
idunno.Bluesky.dll

Options for configuring a Bluesky agent.

public class BlueskyAgentOptions : AtProtoAgentOptions

Inheritance

AtProtoAgentOptions

Inherited Members

AtProtoAgentOptions.AtProtoAgent
AtProtoAgentOptions.LoggerFactory
AtProtoAgentOptions.EnableBackgroundTokenRefresh
AtProtoAgentOptions.PlcDirectoryServer
AtProtoAgentOptions.HttpJsonOptions
AtProtoAgentOptions.OAuthOptions
AtProtoAgentOptions.HttpClientOptions
AtProtoAgentOptions.MaximumWellKnownResponseSize
AtProtoAgentOptions.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

loggerFactory ILoggerFactory?

The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.

enableBackgroundTokenRefresh bool

Flag indicating whether credential refreshes should happen in the background.

publicAppViewUri Uri?

The service URI to use when making calls that to not require authentication

facetExtractor IFacetExtractor?

The facet extractor to use when extracting facets from post or message texts.

oAuthOptions OAuthOptions?

Any idunno.AtProto.Authentication.OAuthOptions for the agent.

httpClientOptions HttpClientOptions?

The HttpClient options for the agent.

httpJsonOptions JsonOptions?

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

loggerFactory ILoggerFactory?

The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.

enableBackgroundTokenRefresh bool

Flag indicating whether credential refreshes should happen in the background.

publicAppViewUri Uri?

The service URI to use when making calls that to not require authentication

facetExtractor IFacetExtractor?

The facet extractor to use when extracting facets from post or message texts.

oAuthOptions OAuthOptions?

Any idunno.AtProto.Authentication.OAuthOptions for the agent.

httpClientOptions HttpClientOptions?

The HttpClient options for the agent.

httpJsonOptions JsonOptions?

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

loggerFactory ILoggerFactory?

The Microsoft.Extensions.Logging.ILoggerFactory, if any, to use when creating loggers.

enableBackgroundTokenRefresh bool

Flag indicating whether credential refreshes should happen in the background.

publicAppViewUri Uri?

The service URI to use when making calls that to not require authentication

facetExtractor IFacetExtractor?

The facet extractor to use when extracting facets from post or message texts.

oAuthOptions OAuthOptions?

Any idunno.AtProto.Authentication.OAuthOptions for the agent.

httpClientOptions HttpClientOptions?

The HttpClient options for the agent.

httpJsonOptions JsonOptions?

Any idunno.AtProto.JsonOptions to use during serialization and deserialization.

Fields

BlueskyAgent

Configuration Provider Key

public const string BlueskyAgent = "BlueskyAgent"

Field Value

string

BlueskyAgent

Configuration Provider Key

public const string BlueskyAgent = "BlueskyAgent"

Field Value

string

BlueskyAgent

Configuration Provider Key

public const string BlueskyAgent = "BlueskyAgent"

Field Value

string

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

IList<string>

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

IList<string>

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

IList<string>

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

IFacetExtractor?

FacetExtractor

Gets or sets the facet extractor to use when extracting facets from post or message texts.

public IFacetExtractor? FacetExtractor { get; set; }

Property Value

IFacetExtractor?

FacetExtractor

Gets or sets the facet extractor to use when extracting facets from post or message texts.

public IFacetExtractor? FacetExtractor { get; set; }

Property Value

IFacetExtractor?

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