Class BlueskyAgentBuilder
- Namespace
- idunno.Bluesky
- Assembly
- idunno.Bluesky.dll
A builder for idunno.Bluesky.BlueskyAgent instances.
public sealed class BlueskyAgentBuilder : AtProtoAgentBuilderInheritance
-
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.ServiceAtProtoAgentBuilder.DirectoryServiceAtProtoAgentBuilder.LoggerFactoryAtProtoAgentBuilder.HttpClientFactoryAtProtoAgentBuilder.HttpClientOptionsAtProtoAgentBuilder.OAuthOptionsAtProtoAgentBuilder.JsonOptionsAtProtoAgentBuilder.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
facetExtractorIFacetExtractor-
The facet extractor to use.
Returns
- BlueskyAgentBuilder
-
The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
SetFacetExtractor(IFacetExtractor)
Sets the facet extractor to use when parsing posts.
public BlueskyAgentBuilder SetFacetExtractor(IFacetExtractor facetExtractor)Parameters
facetExtractorIFacetExtractor-
The facet extractor to use.
Returns
- BlueskyAgentBuilder
-
The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
SetFacetExtractor(IFacetExtractor)
Sets the facet extractor to use when parsing posts.
public BlueskyAgentBuilder SetFacetExtractor(IFacetExtractor facetExtractor)Parameters
facetExtractorIFacetExtractor-
The facet extractor to use.
Returns
- BlueskyAgentBuilder
-
The same instance of idunno.Bluesky.BlueskyAgentBuilder for chaining.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
WithPublicAppViewUri(Uri)
Sets the app view URI the agent will use
public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)Parameters
appViewUriUri-
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
appViewUriis null.
WithPublicAppViewUri(Uri)
Sets the app view URI the agent will use
public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)Parameters
appViewUriUri-
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
appViewUriis null.
WithPublicAppViewUri(Uri)
Sets the app view URI the agent will use
public BlueskyAgentBuilder WithPublicAppViewUri(Uri appViewUri)Parameters
appViewUriUri-
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
appViewUriis null.