This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added App.Config - Moved Config Values to Config.cs, example at Config.example.cs - Added MDBController file, nothing in it yet. - Updated AlexaCompSERVER to reflect config updates. - AlexaCompCore.cs - Added IsConnectedToInternet method to check internet connection. - Added GetInternalIP method to dynamically set ip to port map with. - Moved GetExternalIP and ReadConfig to AlexaCompCore.cs from AlexaComp.cs - AlexaComp.cs - Added check for internet connection. - Added section to set internal IP for port mapping and server.
- Loading branch information
Ari Madian
committed
Dec 10, 2018
1 parent
6db9ac9
commit 4aa766f
Showing
9 changed files
with
178 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | ||
</configSections> | ||
<log4net> | ||
<appender name="FileAppender" type="log4net.Appender.FileAppender"> | ||
<file type="log4net.Util.PatternString" value="Logs\AlexaComp-%date{yyyy-MM-dd;HH-mm,ss}.log" /> | ||
<appendToFile value="true" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date [%2thread] %-5level - %message%newline" /> | ||
</layout> | ||
</appender> | ||
<appender name="SensorListAppender" type="log4net.Appender.FileAppender"> | ||
<file value="SensorList.txt" /> | ||
<appendToFile value="true" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%message%newline" /> | ||
</layout> | ||
</appender> | ||
<root> | ||
<level value="ALL" /> | ||
<appender-ref ref="FileAppender" /> | ||
</root> | ||
<logger additivity="false" name="SensorListAppender"> | ||
<level value="Debug" /> | ||
<appender-ref ref="SensorListAppender" /> | ||
</logger> | ||
</log4net> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
<appSettings> | ||
<add key="ClientSettingsProvider.ServiceUri" value="" /> | ||
</appSettings> | ||
<system.web> | ||
<membership defaultProvider="ClientAuthenticationMembershipProvider"> | ||
<providers> | ||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /> | ||
</providers> | ||
</membership> | ||
<roleManager defaultProvider="ClientRoleProvider" enabled="true"> | ||
<providers> | ||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> | ||
</providers> | ||
</roleManager> | ||
</system.web> | ||
</configuration> |
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,17 @@ | ||
namespace AlexaComp.Core { | ||
|
||
public static class MDBConfig{ | ||
public const string APIURI = ""; | ||
public const string APIAUTH = ""; | ||
} | ||
|
||
public static class LambdaConfig{ | ||
public const string LambdaAuth = ""; | ||
} | ||
|
||
public static class ServerConfig { | ||
public const int PORT; | ||
public static string HOST; | ||
public const string LambdaAuth = ""; | ||
} | ||
} |
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,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AlexaComp.Core.Controllers { | ||
class MDBController { | ||
} | ||
} |
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