forked from kodlamaio-projects/nArchitecture.Gen
-
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.
- Loading branch information
1 parent
03c0b27
commit 979ab8b
Showing
21 changed files
with
87 additions
and
99 deletions.
There are no files selected for viewing
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
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
43 changes: 20 additions & 23 deletions
43
src/corePackages/Core.CrossCuttingConcerns/Helpers/PlatformHelper.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 |
---|---|---|
@@ -1,33 +1,30 @@ | ||
using System; | ||
namespace Core.CrossCuttingConcerns.Helpers; | ||
|
||
namespace Core.CrossCuttingConcerns.Helpers | ||
public static class PlatformHelper | ||
{ | ||
public static class PlatformHelper | ||
public static string SecuredPathJoin(params string[] pathItems) | ||
{ | ||
public static string SecuredPathJoin(params string[] pathItems) | ||
string path; | ||
_ = Environment.OSVersion.Platform switch | ||
{ | ||
string path; | ||
_ = Environment.OSVersion.Platform switch | ||
{ | ||
PlatformID.Unix => path = String.Join("/", pathItems), | ||
PlatformID.MacOSX => path = String.Join("/", pathItems), | ||
_ => path = String.Join("\\", pathItems), | ||
}; | ||
PlatformID.Unix => path = string.Join("/", pathItems), | ||
PlatformID.MacOSX => path = string.Join("/", pathItems), | ||
_ => path = string.Join("\\", pathItems), | ||
}; | ||
|
||
return path; | ||
} | ||
return path; | ||
} | ||
|
||
public static string GetDirectoryHeader() | ||
public static string GetDirectoryHeader() | ||
{ | ||
string file; | ||
_ = Environment.OSVersion.Platform switch | ||
{ | ||
string file; | ||
_ = Environment.OSVersion.Platform switch | ||
{ | ||
PlatformID.Unix => file = "file://", | ||
PlatformID.MacOSX => file = "file://", | ||
_ => file = "", | ||
}; | ||
PlatformID.Unix => file = "file://", | ||
PlatformID.MacOSX => file = "file://", | ||
_ => file = "", | ||
}; | ||
|
||
return file; | ||
} | ||
return file; | ||
} | ||
} |
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.