Skip to main content

Class ServiceCollectionExtensions

Extension methods for configuring services related to the MetaFileSystem in the IServiceCollection.

Namespace: Workspace.XBR.Xperiflow.MetaFileSystem.Extensions

Assembly: Xperiflow.dll

Declaration
public static class ServiceCollectionExtensions

Methods

AddMetaFileSystemFactory(IServiceCollection)

Adds the MetaFileSystemSessionClientFactory to the service collection as a transient service. This factory is capable of creating MetaFileSystem client instances without a specific configuration key.

Declaration
public static IServiceCollection AddMetaFileSystemFactory(this IServiceCollection services)
Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection

The IServiceCollection for chaining further configurations.

Parameters
TypeNameDescription
Microsoft.Extensions.DependencyInjection.IServiceCollectionservicesThe IServiceCollection to configure.

AddMetaFileSystemFactory<TKey>(IServiceCollection, string)

Adds a typed MetaFileSystemSessionClientFactory to the service collection as a transient service. This factory is pre-configured with a specific connection key and is designed to create MetaFileSystem clients based on this key.

Declaration
public static IServiceCollection AddMetaFileSystemFactory<TKey>(this IServiceCollection services, string connectionKey)
Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection

The IServiceCollection for chaining further configurations.

Parameters
TypeNameDescription
Microsoft.Extensions.DependencyInjection.IServiceCollectionservicesThe IServiceCollection to configure.
System.StringconnectionKeyThe connection key to configure the MetaFileSystem client.
Type Parameters
NameDescription
TKeyThe type of the key used to identify the specific configuration for the MetaFileSystem client. It is recommended you use an enum.

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?