Class ServiceCollectionExtensions
Extension methods for configuring services related to the MetaFileSystem in the IServiceCollection.
Namespace: Workspace.XBR.Xperiflow.MetaFileSystem.Extensions
Assembly: Xperiflow.dll
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.
public static IServiceCollection AddMetaFileSystemFactory(this IServiceCollection services)
Returns
Microsoft.Extensions.DependencyInjection.IServiceCollection
The IServiceCollection for chaining further configurations.
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The 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.
public static IServiceCollection AddMetaFileSystemFactory<TKey>(this IServiceCollection services, string connectionKey)
Returns
Microsoft.Extensions.DependencyInjection.IServiceCollection
The IServiceCollection for chaining further configurations.
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The IServiceCollection to configure. |
System.String | connectionKey | The connection key to configure the MetaFileSystem client. |
Type Parameters
Name | Description |
---|---|
TKey | The 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