This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from arduosoft/develop
publish client
- Loading branch information
Showing
37 changed files
with
1,501 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//****************************************************************************** | ||
// <copyright file="license.md" company="RawCMS project (https://github.com/arduosoft/RawCMS)"> | ||
// Copyright (c) 2019 RawCMS project (https://github.com/arduosoft/RawCMS) | ||
// RawCMS project is released under GPL3 terms, see LICENSE file on repository root at https://github.com/arduosoft/RawCMS . | ||
// </copyright> | ||
// <author>Daniele Fontani, Emanuele Bucarelli, Francesco Minà</author> | ||
// <autogenerated>true</autogenerated> | ||
//****************************************************************************** | ||
using Microsoft.Extensions.Configuration; | ||
using System.IO; | ||
|
||
namespace RawCMS.Client.BLL.Core | ||
{ | ||
public class ClientConfig | ||
{ | ||
private static IConfigurationBuilder _builder = null; | ||
private static IConfigurationRoot _configuration = null; | ||
|
||
public static IConfigurationRoot Config | ||
{ | ||
get | ||
{ | ||
if (_configuration == null) | ||
{ | ||
_builder = new ConfigurationBuilder() | ||
.SetBasePath(Directory.GetCurrentDirectory()) | ||
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); | ||
|
||
_configuration = _builder.Build(); | ||
} | ||
return _configuration; | ||
} | ||
set { } | ||
} | ||
|
||
public static T GetValue<T>(string key) | ||
{ | ||
return Config.GetValue<T>(key); | ||
} | ||
} | ||
} |
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,44 @@ | ||
//****************************************************************************** | ||
// <copyright file="license.md" company="RawCMS project (https://github.com/arduosoft/RawCMS)"> | ||
// Copyright (c) 2019 RawCMS project (https://github.com/arduosoft/RawCMS) | ||
// RawCMS project is released under GPL3 terms, see LICENSE file on repository root at https://github.com/arduosoft/RawCMS . | ||
// </copyright> | ||
// <author>Daniele Fontani, Emanuele Bucarelli, Francesco Minà</author> | ||
// <autogenerated>true</autogenerated> | ||
//****************************************************************************** | ||
using System; | ||
|
||
namespace RawCMS.Client.BLL.Core | ||
{ | ||
public class ConfigFile | ||
{ | ||
public string Token { get; set; } | ||
public string ServerUrl { get; set; } | ||
public string User { get; set; } | ||
public string CreatedTime { get; set; } | ||
|
||
public ConfigFile() | ||
{ | ||
} | ||
|
||
public ConfigFile(string content) | ||
{ | ||
try | ||
{ | ||
ConfigFile cf = Newtonsoft.Json.JsonConvert.DeserializeObject<ConfigFile>(content); | ||
Token = cf.Token; | ||
ServerUrl = cf.ServerUrl; | ||
User = cf.User; | ||
CreatedTime = cf.CreatedTime; | ||
} | ||
catch (Exception) | ||
{ | ||
} | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return Newtonsoft.Json.JsonConvert.SerializeObject(this); | ||
} | ||
} | ||
} |
Oops, something went wrong.