Table of Contents

Class BlueskyAgentBuilder

Namespace
idunno.Bluesky
Assembly
idunno.Bluesky.dll

A builder for idunno.Bluesky.BlueskyAgent instances.

public sealed class BlueskyAgentBuilder : AtProtoAgentBuilder

Inheritance

AtProtoAgentBuilder

Inherited Members

AtProtoAgentBuilder.Create()
AtProtoAgentBuilder.ForService(Uri)
AtProtoAgentBuilder.ForService(string)
AtProtoAgentBuilder.WithDirectoryService(Uri)
AtProtoAgentBuilder.WithDirectoryService(string)
AtProtoAgentBuilder.WithLoggerFactory(ILoggerFactory)
AtProtoAgentBuilder.ConfigureOAuthOptions(Action<OAuthOptions>)
AtProtoAgentBuilder.ConfigureHttpJsonOptions(Action<JsonOptions>)
AtProtoAgentBuilder.ConfigureHttpClientOptions(Action<HttpClientOptions>)
AtProtoAgentBuilder.DisableBackgroundTokenRefresh()
AtProtoAgentBuilder.EnableBackgroundTokenRefresh()
AtProtoAgentBuilder.WithHttpClientFactory(IHttpClientFactory)
AtProtoAgentBuilder.Build()
AtProtoAgentBuilder.Service
AtProtoAgentBuilder.DirectoryService
AtProtoAgentBuilder.LoggerFactory
AtProtoAgentBuilder.HttpClientFactory
AtProtoAgentBuilder.HttpClientOptions
AtProtoAgentBuilder.OAuthOptions
AtProtoAgentBuilder.JsonOptions
AtProtoAgentBuilder.BackgroundTokenRefreshEnabled

Methods

Build()

Builds the idunno.AtProto.AtProtoAgent.

public BlueskyAgent Build()

Returns

BlueskyAgent

A configured idunno.AtProto.AtProtoAgent.

Exceptions

ArgumentNullException

Thrown when the underlying idunno.AtProto.AtProtoAgentBuilder.Service or idunno.AtProto.AtProtoAgentBuilder.LoggerFactory is null.

Build()

Builds the idunno.AtProto.AtProtoAgent.

public BlueskyAgent Build()

Returns

BlueskyAgent

A configured idunno.AtProto.AtProtoAgent.

Exceptions

ArgumentNullException

Thrown when the underlying idunno.AtProto.AtProtoAgentBuilder.Service or idunno.AtProto.AtProtoAgentBuilder.LoggerFactory is null.

Build()

Builds the idunno.AtProto.AtProtoAgent.

public BlueskyAgent Build()

Returns

BlueskyAgent

A configured idunno.AtProto.AtProtoAgent.

Exceptions

ArgumentNullException

Thrown when the underlying idunno.AtProto.AtProtoAgentBuilder.Service or idunno.AtProto.AtProtoAgentBuilder.LoggerFactory is null.

Create()

Creates a new idunno.Bluesky.BlueskyAgentBuilder.

public static BlueskyAgentBuilder Create()

Returns

BlueskyAgentBuilder

A new idunno.Bluesky.BlueskyAgentBuilder

Create()

Creates a new idunno.Bluesky.BlueskyAgentBuilder.

public static BlueskyAgentBuilder Create()

Returns

BlueskyAgentBuilder

A new idunno.Bluesky.BlueskyAgentBuilder

Create()

Creates a new idunno.Bluesky.BlueskyAgentBuilder.

public static BlueskyAgentBuilder Create()

Returns

BlueskyAgentBuilder

A new idunno.Bluesky.BlueskyAgentBuilder

SetFacetExtractor(IFacetExtractor)

Sets the facet extractor to use when parsing posts.

public BlueskyAgentBuilder SetFacetExtractor(IFacetExtractor facetExtractor)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when facetExtractor is null.

SetFacetExtractor(IFacetExtractor)

Sets the facet extractor to use when parsing posts.

public BlueskyAgentBuilder SetFacetExtractor(IFacetExtractor facetExtractor)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when facetExtractor is null.

SetFacetExtractor(IFacetExtractor)

Sets the facet extractor to use when parsing posts.

public BlueskyAgentBuilder SetFacetExtractor(IFacetExtractor facetExtractor)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when facetExtractor is null.

WithPublicAppViewUri(Uri)

Sets the app view URI the agent will use

public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)

Parameters

appViewUri Uri

The public System.Uri of the app view the agent will use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when appViewUri is null.

WithPublicAppViewUri(Uri)

Sets the app view URI the agent will use

public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)

Parameters

appViewUri Uri

The public System.Uri of the app view the agent will use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when appViewUri is null.

WithPublicAppViewUri(Uri)

Sets the app view URI the agent will use

public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)

Parameters

appViewUri Uri

The public System.Uri of the app view the agent will use.

Returns

BlueskyAgentBuilder

The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.

Exceptions

ArgumentNullException

Thrown when appViewUri is null.