Interface IDocumentStorageFactory
Фабрика для получения экземпляров IDocumentStorage и IDocumentStorage<TDocument>.
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentStorageFactory
Methods
| Improve this Doc View SourceGetStorage(String)
Возвращает экземпляр IDocumentStorage.
Declaration
IDocumentStorage GetStorage(string documentTypeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | documentTypeName | Имя типа документа. |
Returns
Type | Description |
---|---|
IDocumentStorage |
GetStorage(Type, String)
Возвращает экземпляр IDocumentStorage<TDocument>.
Declaration
object GetStorage(Type documentType, string documentTypeName = null)
Parameters
Type | Name | Description |
---|---|---|
Type | documentType | Тип документа. |
System.String | documentTypeName | Имя типа документа. |
Returns
Type | Description |
---|---|
System.Object |
GetStorage<TDocument>(String)
Возвращает экземпляр IDocumentStorage<TDocument>.
Declaration
IDocumentStorage<TDocument> GetStorage<TDocument>(string documentTypeName = null)where TDocument : Document
Parameters
Type | Name | Description |
---|---|---|
System.String | documentTypeName | Имя типа документа. |
Returns
Type | Description |
---|---|
IDocumentStorage<TDocument> |
Type Parameters
Name | Description |
---|---|
TDocument | Тип документа. |