DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/WellOperationImport/WellOperationImportTemplateService.cs
Степанов Дмитрий ff02a29115 Сервисы парсинга
1. Добавил парсинг Газпромовских файлов
2. Сделал рефакторинг существующего импорта
2023-09-04 14:11:25 +05:00

21 lines
581 B
C#

using System.IO;
using System.Linq;
using System.Reflection;
using AsbCloudApp.Services.WellOperationImport;
namespace AsbCloudInfrastructure.Services.WellOperationImport;
public class WellOperationImportTemplateService : IWellOperationImportTemplateService
{
public Stream GetExcelTemplateStream()
{
var resourceName = Assembly.GetExecutingAssembly()
.GetManifestResourceNames()
.FirstOrDefault(n => n.EndsWith("WellOperationImportTemplate.xlsx"))!;
var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream(resourceName)!;
return stream;
}
}