-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for well status the we get from the plotsymbol
- Loading branch information
Showing
18 changed files
with
357 additions
and
29 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
TexasPPDMLoader/Data/IWellboreData.cs → PPDMLoaderLibrary/Data/IWellboreData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
TexasPPDMLoader/Data/WellboreDataCsv.cs → PPDMLoaderLibrary/Data/WellboreDataCsv.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
PPDMLoaderLibrary/DataAccess/EmbeddedFileStorageService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PPDMLoaderLibrary.DataAccess | ||
{ | ||
public class EmbeddedFileStorageService : IFileStorageService | ||
{ | ||
public async Task<string> ReadFile(string fileShare, string fileName) | ||
{ | ||
string fileContent = ""; | ||
try | ||
{ | ||
Assembly asm = Assembly.GetExecutingAssembly(); | ||
string[] names = asm.GetManifestResourceNames(); | ||
string streamName = @"PPDMLoaderLibrary." + fileName; | ||
using Stream stream = asm.GetManifestResourceStream(streamName); | ||
using StreamReader reader = new(stream); | ||
fileContent = await reader.ReadToEndAsync(); | ||
} | ||
catch (Exception ex) | ||
{ | ||
Console.WriteLine($"Error reading plotsymbol file; {ex}"); | ||
|
||
} | ||
|
||
return fileContent; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PPDMLoaderLibrary.DataAccess | ||
{ | ||
public interface IFileStorageService | ||
{ | ||
Task<string> ReadFile(string fileShare, string fileName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.