v 1.0.5-rc20-alpha5
in order to build 1.0.5-rc20-alpha5 * fixing dep graph, while moving as must as possible code from Yavsc to Yavsc.Server * impoved topmost Makefile * cleaned the badly desined, ans system redondant "Action" definiton
This commit is contained in:
parent
edfbb54ce8
commit
781ce94edc
21 changed files with 24 additions and 8664 deletions
23
Makefile
23
Makefile
|
|
@ -10,43 +10,36 @@ Yavsc.Abstract:
|
||||||
Yavsc.Server: Yavsc.Abstract
|
Yavsc.Server: Yavsc.Abstract
|
||||||
$(MAKE) -C Yavsc.Server VERSION=$(VERSION)
|
$(MAKE) -C Yavsc.Server VERSION=$(VERSION)
|
||||||
|
|
||||||
Yavsc:
|
Yavsc: Yavsc.Server
|
||||||
make -C Yavsc restore
|
|
||||||
make -C Yavsc VERSION=$(VERSION)
|
make -C Yavsc VERSION=$(VERSION)
|
||||||
|
|
||||||
Yavsc-deploy-pkg:
|
Yavsc-deploy-pkg: Yavsc
|
||||||
make -C Yavsc deploy-pkg
|
make -C Yavsc deploy-pkg
|
||||||
|
|
||||||
Yavsc.Server-deploy-pkg:
|
Yavsc.Server-deploy-pkg: Yavsc.Server
|
||||||
make -C Yavsc.Server deploy-pkg
|
make -C Yavsc.Server deploy-pkg
|
||||||
|
|
||||||
Yavsc.Abstract-deploy-pkg: Yavsc
|
Yavsc.Abstract-deploy-pkg: Yavsc.Abstract
|
||||||
make -C Yavsc.Abstract deploy-pkg
|
make -C Yavsc.Abstract deploy-pkg
|
||||||
|
|
||||||
cli-deploy-pkg:
|
cli-deploy-pkg: cli
|
||||||
make -C cli deploy-pkg
|
make -C cli deploy-pkg
|
||||||
|
|
||||||
Yavsc.Abstract-deploy-pkg: Yavsc.Abstract
|
|
||||||
|
|
||||||
Yavsc-Server: Yavsc.Abstract-deploy-pkg
|
|
||||||
|
|
||||||
Yavsc.Server-deploy-pkg: Yavsc-Server
|
|
||||||
|
|
||||||
cli: Yavsc.Abstract-deploy-pkg Yavsc.Server-deploy-pkg
|
cli: Yavsc.Abstract-deploy-pkg Yavsc.Server-deploy-pkg
|
||||||
make -C cli restore
|
make -C cli restore
|
||||||
make -C cli
|
make -C cli
|
||||||
|
|
||||||
cli-deploy-pkg: cli
|
undoLocalYavscNugetDeploy:
|
||||||
|
rm -rf ~/.dnx/packages/Yavsc.Abstract/$(VERSION)
|
||||||
|
rm -rf ~/.dnx/packages/Yavsc.Server/$(VERSION)
|
||||||
|
|
||||||
deploy-pkgs: Yavsc-deploy-pkg cli-deploy-pkg
|
deploy-pkgs: Yavsc-deploy-pkg cli-deploy-pkg
|
||||||
|
|
||||||
memo:
|
memo:
|
||||||
vim ~/TODO.md
|
vim ~/TODO.md
|
||||||
|
|
||||||
|
|
||||||
rc-num:
|
rc-num:
|
||||||
@echo echo 1-alpha1 < $< ^ $^ @ $@
|
@echo echo 1-alpha1 < $< ^ $^ @ $@
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all $(SUBDIRS)
|
.PHONY: all $(SUBDIRS)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
namespace Yavsc.Server.Helpers
|
|
||||||
{
|
|
||||||
public static class DbHelpers
|
|
||||||
{
|
|
||||||
// FIXME BUG [fr] DependencyInjection Pourquoi ce champ ne pourrait pas devenir une propriété ?
|
|
||||||
// : casse à l'execution d'un controlleur, se plaignant d'une valeur nule
|
|
||||||
public static string ConnectionString = "Server=Your-Server-Adress;Port=5432;Database=YourDadabaseName;Username=YourDatabaseUserName;Password=YourPassword;";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Yavsc.Models.Process
|
|
||||||
{
|
|
||||||
public abstract class Action<TResult,TInput>
|
|
||||||
{
|
|
||||||
public abstract Task<TResult> GetTask(TInput data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Yavsc.Models.Process
|
namespace Yavsc.Models.Process
|
||||||
|
|
@ -5,7 +6,7 @@ namespace Yavsc.Models.Process
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An abstract, identified rule
|
/// An abstract, identified rule
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Rule<TResult,TInput>
|
public abstract class Rule<TResult,TInput>
|
||||||
{
|
{
|
||||||
[Key]
|
[Key]
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
|
|
@ -28,7 +29,7 @@ namespace Yavsc.Models.Process
|
||||||
|
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
public Action<TResult,TInput> Execution { get; set; }
|
public abstract TResult Execute(TInput inputData);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,9 +77,9 @@ namespace Yavsc
|
||||||
|
|
||||||
var auth = Configuration["Site:Authority"];
|
var auth = Configuration["Site:Authority"];
|
||||||
var cxstr = Configuration["Data:DefaultConnection:ConnectionString"];
|
var cxstr = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||||
DbHelpers.ConnectionString = cxstr;
|
ConnectionString = cxstr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public static string ConnectionString { get; set; }
|
||||||
public static GoogleAuthSettings GoogleSettings { get; set; }
|
public static GoogleAuthSettings GoogleSettings { get; set; }
|
||||||
public IConfigurationRoot Configuration { get; set; }
|
public IConfigurationRoot Configuration { get; set; }
|
||||||
|
|
||||||
|
|
@ -158,7 +158,7 @@ namespace Yavsc
|
||||||
services.AddEntityFramework()
|
services.AddEntityFramework()
|
||||||
.AddNpgsql()
|
.AddNpgsql()
|
||||||
.AddDbContext<ApplicationDbContext>(
|
.AddDbContext<ApplicationDbContext>(
|
||||||
db => db.UseNpgsql(DbHelpers.ConnectionString)
|
db => db.UseNpgsql(ConnectionString)
|
||||||
);
|
);
|
||||||
|
|
||||||
ConfigureOAuthServices(services);
|
ConfigureOAuthServices(services);
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ using Yavsc.Models;
|
||||||
using Yavsc.Server.Helpers;
|
using Yavsc.Server.Helpers;
|
||||||
using Yavsc.Services;
|
using Yavsc.Services;
|
||||||
using Yavsc.Templates;
|
using Yavsc.Templates;
|
||||||
|
using Microsoft.Data.Entity;
|
||||||
|
|
||||||
namespace cli
|
namespace cli
|
||||||
{
|
{
|
||||||
|
|
@ -33,8 +34,7 @@ namespace cli
|
||||||
{
|
{
|
||||||
public string ConnectionString
|
public string ConnectionString
|
||||||
{
|
{
|
||||||
get { return DbHelpers.ConnectionString; }
|
get ; set;
|
||||||
private set { DbHelpers.ConnectionString = value; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SiteSettings SiteSetup { get; private set; }
|
public static SiteSettings SiteSetup { get; private set; }
|
||||||
|
|
@ -79,6 +79,13 @@ namespace cli
|
||||||
{
|
{
|
||||||
options.ResourcesPath = "Resources";
|
options.ResourcesPath = "Resources";
|
||||||
});
|
});
|
||||||
|
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||||
|
|
||||||
|
services.AddEntityFramework()
|
||||||
|
.AddNpgsql()
|
||||||
|
.AddDbContext<ApplicationDbContext>(
|
||||||
|
db => db.UseNpgsql(ConnectionString)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Configure (IApplicationBuilder app, IHostingEnvironment env,
|
public void Configure (IApplicationBuilder app, IHostingEnvironment env,
|
||||||
|
|
@ -88,8 +95,6 @@ namespace cli
|
||||||
loggerFactory.AddDebug();
|
loggerFactory.AddDebug();
|
||||||
logger = loggerFactory.CreateLogger<Startup>();
|
logger = loggerFactory.CreateLogger<Startup>();
|
||||||
logger.LogInformation(env.EnvironmentName);
|
logger.LogInformation(env.EnvironmentName);
|
||||||
var cxstr = Configuration["Data:DefaultConnection:ConnectionString"];
|
|
||||||
DbHelpers.ConnectionString = cxstr;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,7 @@
|
||||||
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
|
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
|
||||||
"Newtonsoft.Json": "9.0.1",
|
"Newtonsoft.Json": "9.0.1",
|
||||||
"Yavsc.Abstract": { "version": "1.0.5-rc20-alpha5", "target": "package" },
|
"Yavsc.Abstract": { "version": "1.0.5-rc20-alpha5", "target": "package" },
|
||||||
"Yavsc.Server": { "version": "1.0.5-rc20-alpha5", "target": "package" },
|
"Yavsc.Server": { "version": "1.0.5-rc20-alpha5", "target": "package" }
|
||||||
"Yavsc": { "version": "1.0.5-rc20-alpha5", "target": "package" }
|
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {}
|
"dnx451": {}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -9,5 +9,3 @@ MAKE=make
|
||||||
NUGETSOURCE=$(HOME)/Nupkgs
|
NUGETSOURCE=$(HOME)/Nupkgs
|
||||||
VERSION=1.0.5-rc$(rc_num)
|
VERSION=1.0.5-rc$(rc_num)
|
||||||
CONFIGURATION=Release
|
CONFIGURATION=Release
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue