chatRooms

This commit is contained in:
2018-01-02 16:35:03 +01:00
parent 176952d30f
commit 5b372b127d
42 changed files with 15345 additions and 225 deletions

View File

@ -0,0 +1,55 @@
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:52.637, 243232903580271, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:53.399, 243233283927716, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:53.469, 243233353873714, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:53.511, 243233396374116, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:53.513, 243233397716289, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:53.513, 243233397763696, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:53.513, 243233397791237, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:53.513, 243233397824038, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:53.919, 243233804522441, vstest.console.dll, Trying to connect to server on port : 38673
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:54.147, 243234032532910, vstest.console.dll, Trying to connect to server on port : 38673
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:53:54.213, 243234098358884, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:56.386, 243236270752816, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:56.407, 243236292051616, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:53:56.409, 243236294516091, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:56.409, 243236294635540, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:53:56.411, 243236296621686, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:54:01.329, 243241214504352, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:54:01.335, 243241219681920, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:54:01.923, 243241807677667, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:54:01.928, 243241813558787, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:54:01.930, 243241815540631, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:54:01.931, 243241816146798, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:01.932, 243241817320964, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:01.937, 243241822028650, vstest.console.dll, Listening on port : 34817
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:02.285, 243242170295671, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:02.285, 243242170451686, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:02.285, 243242170503425, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:02.288, 243242173216579, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:02.289, 243242173770201, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:02.355, 243242240522234, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:02.987, 243242872227512, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 2667, 5, 2017/12/27, 11:54:03.144, 243243029159727, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:03.145, 243243030076526, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:03.147, 243243032165784, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:03.160, 243243045602979, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:03.161, 243243045682864, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:03.169, 243243054224715, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 2667, 5, 2017/12/27, 11:54:03.169, 243243054340635, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 2667, 5, 2017/12/27, 11:54:03.170, 243243054719290, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 2667, 1, 2017/12/27, 11:54:03.171, 243243056096146, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:54:03.171, 243243056154847, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 2667, 1, 2017/12/27, 11:54:03.171, 243243056195943, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 2667, 1, 2017/12/31, 22:29:10.907, 626950792100994, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 2667, 1, 2017/12/31, 22:29:11.335, 626951220525446, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 2667, 1, 2017/12/31, 22:29:11.510, 626951394885593, vstest.console.dll, Executor.Execute: Exiting with exit code of 1

23
YaDaemon/OldYaDaemon.csproj Executable file
View File

@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!--
<ReferenceInclude>PropertyGroup
"Microsoft.AspNet.Hosting": "1.0.0-rc1-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
"Microsoft.AspNet.Mvc.Core": "6.0.0-rc1-*",
"Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final",
"Yavsc": {
"type": "build",
"version": "1.0.0"
}
</PropertyGroup>
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -1,9 +1,87 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.ServiceProcess;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Hosting.Internal;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.ConfigurationModel;
using Yavsc;
class YaDaemon
public class Program : ServiceBase
{
static void Main(string[] args)
private readonly EventLog _log =
new EventLog("Application") { Source = "Application" };
private readonly IServiceProvider _serviceProvider;
private IHostingEngine _hostingEngine;
private IDisposable _shutdownServerDisposable;
private static Program instance;
public Program(IServiceProvider serviceProvider)
{
Console.WriteLine("Hello World!");
_serviceProvider = serviceProvider;
instance = this;
}
// Fails claming "use mono-service" :
// public static void Main(string[] args) => YaDaemon.YaDaemon.Main(args);
public static void Main(string[] args) => YaDaemon.YaDaemon.Main(args);
// public static void Main(string[] args) => Console.WriteLine("Hello World!");
public void OldMain(string[] args)
{
Microsoft.Extensions.PlatformAbstractions.IApplicationEnvironment iappenv;
IHostingEnvironment env = new Microsoft.AspNet.Hosting.HostingEnvironment();
iappenv = null;// new HostingEnvironmentExtensions();
Console.WriteLine("HW");
_log.WriteEntry("Test from MyDnxService.", EventLogEntryType.Information, 1);
#if DEBUG
OnStart(null);
#else
Run(this);
#endif
}
protected override void OnStart(string[] args)
{
/* TODO how to use configSource
var configSource = new MemoryConfigurationSource();
configSource.Add("server.urls", "http://localhost:5000");
configSource.Load();
*/
var configBuilder = new ConfigurationBuilder();
configBuilder.AddInMemoryCollection();
configBuilder.SetBasePath("../Yavsc/");
configBuilder.AddJsonFile("../Yavsc/project.json");
var config = configBuilder.Build();
var builder = new WebHostBuilder();
builder.UseServer("Microsoft.AspNet.Server.Kestrel");
builder.UseServices(services => services.AddMvc());
builder.UseStartup(appBuilder =>
{
appBuilder.UseDefaultFiles();
appBuilder.UseStaticFiles();
appBuilder.UseMvc();
});
_hostingEngine = builder.Build();
// Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);
_shutdownServerDisposable = _hostingEngine.Start();
}
}

View File

@ -0,0 +1,13 @@
namespace YaDaemon
{
using YaDaemon;
public class TestDaemonStart
{
public TestDaemonStart()
{
YaTaskScheduler shed = new YaTaskScheduler();
}
}
}

3
YaDaemon/YaDaemon.csproj Executable file → Normal file
View File

@ -2,7 +2,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,95 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
namespace YaDaemon
{
public class YaTaskScheduler : TaskScheduler
{
List<Task> _tasks;
protected override IEnumerable<Task> GetScheduledTasks()
{
return _tasks;
}
protected override void QueueTask(Task task)
{
_tasks.Add(task);
}
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
{
task.Start();
task.Wait();
return task.IsCompleted;
}
}
public class YaDaemon: IDisposable
{
private readonly EventLog _log =
new EventLog("Application") { Source = "Application" };
async void MainLoop(string[] args)
{
}
public async static void Main(string[] args)
{
using (var prog = new YaDaemon()) {
try {
await prog.StartAsync(args);
} catch (Exception ex)
{
prog.OnContinue();
}
finally {
prog.OnShutdown();
}
}
}
async Task StartAsync(string[] args)
{
await Task.Run(() => {
OnStart(args);
} );
}
protected void OnContinue()
{
}
protected void OnShutdown()
{
}
protected void OnStart(string[] args)
{
_log.WriteEntry("Test from YaDaemon.", EventLogEntryType.Information, 1);
_log.WriteEntry("YaDaemon started.");
Console.WriteLine("YaDaemon started");
}
protected void OnStop()
{
_log.WriteEntry("YaDaemon stopped.");
Console.WriteLine("YaDaemon stopped");
}
public void Dispose()
{
}
}
}

17
YaDaemon/project.json Normal file
View File

@ -0,0 +1,17 @@
{
"version": "1.0.0-*",
"description": "MyDnxService Console Application",
"dependencies": {
"Yavsc": {
"type": "build",
"version": "1.0.0"
}
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.ServiceProcess": "4.0.0.0"
}
}
}
}

11722
YaDaemon/project.lock.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
namespace Yavsc.Abstract.Streaming
{
public enum ChatRoomUsageLevel: int {
User=0,
HalfOp,
Op
}
}

View File

@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace Yavsc.Abstract.Streaming
{
public interface IChatConnection<T> : IConnection where T: IChatRoomUsage
{
List<T> Rooms { get; }
}
}

View File

@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace Yavsc.Abstract.Streaming
{
public interface IChatRoom<TUsage> where TUsage : IChatRoomUsage
{
string Name { get; set; }
string Topic { get ; set; }
List<TUsage> UserList { get; }
}
}

View File

@ -0,0 +1,12 @@
namespace Yavsc.Abstract.Streaming
{
public interface IChatRoomUsage {
string ChannelName { get; set; }
string ChatUserConnectionId { get; set; }
ChatRoomUsageLevel Level { get; set; }
}
}

View File

@ -1,11 +1,5 @@
namespace Yavsc
namespace Yavsc.Abstract.Streaming
{
public interface IConnection
{
string ConnectionId { get; set; }
string UserAgent { get; set; }
bool Connected { get; set; }
}
public interface IChatUserInfo
{

View File

@ -0,0 +1,10 @@
namespace Yavsc.Abstract.Streaming
{
public interface IConnection
{
string ConnectionId { get; set; }
string UserAgent { get; set; }
bool Connected { get; set; }
}
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>

View File

@ -0,0 +1,302 @@
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:47.566, 417227774463507, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:48.128, 417228012973520, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:48.389, 417228274423953, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:48.440, 417228325609796, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:48.442, 417228326977638, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:48.442, 417228327052028, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:48.442, 417228327086012, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:48.442, 417228327125454, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:49.364, 417229249391571, vstest.console.dll, Trying to connect to server on port : 34383
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:49.560, 417229444923336, vstest.console.dll, Trying to connect to server on port : 34383
TpTrace Information: 0 : 11428, 4, 2017/12/29, 12:13:49.683, 417229567699840, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:50.723, 417230607881241, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:50.739, 417230623851395, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:50.741, 417230626266995, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:50.741, 417230626368976, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:50.743, 417230628185325, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:55.683, 417235567660792, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:55.688, 417235573411295, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:56.201, 417236086280801, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:56.208, 417236092961850, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:56.210, 417236095444924, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:56.211, 417236095879318, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.211, 417236096603217, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.216, 417236101472675, vstest.console.dll, Listening on port : 40475
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.356, 417236241550686, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.357, 417236241737053, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.357, 417236241808532, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.360, 417236244772988, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.360, 417236245337888, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.551, 417236436436103, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.791, 417236676444773, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 11428, 5, 2017/12/29, 12:13:56.927, 417236812153322, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.928, 417236813035599, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.930, 417236815003667, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.944, 417236828875258, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.944, 417236828980382, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.952, 417236836979672, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 11428, 5, 2017/12/29, 12:13:56.952, 417236837087287, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 11428, 5, 2017/12/29, 12:13:56.953, 417236837981091, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 12:13:56.954, 417236839068168, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:56.954, 417236839145130, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 11428, 1, 2017/12/29, 12:13:56.954, 417236839173351, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 11428, 1, 2017/12/29, 13:07:18.501, 420438385809171, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 11428, 1, 2017/12/29, 13:07:19.047, 420438932491334, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 11428, 1, 2017/12/29, 13:07:19.078, 420438963120290, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:00:55.043, 423654929304739, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:00:59.877, 423659762163810, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:00:59.929, 423659814508273, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:00.089, 423659974199910, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:00.090, 423659975452400, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:00.090, 423659975506597, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:00.090, 423659975542110, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:00.090, 423659975572911, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:00.667, 423660551799584, vstest.console.dll, Trying to connect to server on port : 38145
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:00.792, 423660677143991, vstest.console.dll, Trying to connect to server on port : 38145
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:00.858, 423660742944693, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:01.919, 423661804583841, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:01.939, 423661824183265, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:01.941, 423661826514659, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:01.942, 423661826643669, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:01.943, 423661828522705, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:06.718, 423666603333181, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:06.723, 423666608417445, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:07.159, 423667044178757, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:07.166, 423667050861129, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:07.168, 423667052813172, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:07.168, 423667053246602, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:07.169, 423667053974332, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:07.174, 423667058925979, vstest.console.dll, Listening on port : 49597
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.331, 423668216066333, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.331, 423668216244902, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.331, 423668216286099, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.349, 423668234392129, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:08.350, 423668234960562, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.475, 423668360558768, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:08.907, 423668792223205, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 20412, 4, 2017/12/29, 14:01:08.975, 423668860248587, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.976, 423668861347012, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:08.978, 423668863274642, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:08.992, 423668877243976, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:08.992, 423668877349961, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:09.000, 423668885503787, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:09.001, 423668885895392, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:09.002, 423668886784563, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:09.003, 423668887644121, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:09.003, 423668887703712, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:09.003, 423668887732356, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:38.008, 423697892858219, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:38.008, 423697893475539, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:38.009, 423697893987363, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:38.011, 423697896032435, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:38.011, 423697896173947, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:38.011, 423697896261610, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:38.011, 423697896278576, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:38.011, 423697896546157, vstest.console.dll, Listening on port : 39001
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.014, 423697898941523, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.014, 423697899052406, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.014, 423697899121664, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.014, 423697899200446, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.014, 423697899289010, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Error: 0 : 20412, 4, 2017/12/29, 14:01:38.015, 423697900214576, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.015, 423697900315473, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:38.015, 423697900416647, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.015, 423697900594204, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:38.016, 423697900651581, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.016, 423697900808810, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 20412, 4, 2017/12/29, 14:01:38.016, 423697900890334, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 20412, 4, 2017/12/29, 14:01:38.016, 423697900945568, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:01:38.016, 423697900958967, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:38.016, 423697901054710, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 20412, 1, 2017/12/29, 14:01:38.016, 423697901115945, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 20412, 1, 2017/12/29, 14:02:54.797, 423774682630081, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 20412, 1, 2017/12/29, 14:02:54.813, 423774698233199, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 20412, 1, 2017/12/29, 14:02:54.814, 423774698642880, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.908, 423777794281601, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:57.947, 423777832020777, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:57.949, 423777833764959, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.969, 423777853871094, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.970, 423777855197445, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.970, 423777855270660, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.970, 423777855316089, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:57.970, 423777855348979, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.025, 423777909719261, vstest.console.dll, Trying to connect to server on port : 33315
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.027, 423777912462699, vstest.console.dll, Trying to connect to server on port : 33315
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:02:58.041, 423777925816270, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.392, 423778276882059, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.413, 423778297937223, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:02:58.416, 423778301412022, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.416, 423778301516190, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:02:58.418, 423778303216648, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:03:03.325, 423783210000741, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:03:03.330, 423783215036302, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:03:03.414, 423783299199742, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:03:03.420, 423783305166568, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:03:03.422, 423783306955847, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:03:03.422, 423783307335384, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.423, 423783308007016, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.428, 423783312721221, vstest.console.dll, Listening on port : 48453
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.479, 423783364040327, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.479, 423783364396494, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.479, 423783364443620, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.505, 423783390595229, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.506, 423783391238622, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.540, 423783425131692, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.606, 423783491390943, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 20786, 5, 2017/12/29, 14:03:03.642, 423783527594772, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.644, 423783528698552, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.646, 423783530648051, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.664, 423783548669780, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.664, 423783549384648, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.674, 423783559486444, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 20786, 5, 2017/12/29, 14:03:03.674, 423783559627764, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 20786, 5, 2017/12/29, 14:03:03.675, 423783559979878, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 14:03:03.676, 423783561361950, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:03:03.676, 423783561448222, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 20786, 1, 2017/12/29, 14:03:03.676, 423783561479133, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 20786, 1, 2017/12/29, 17:24:19.705, 435859590386777, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 20786, 1, 2017/12/29, 17:24:21.113, 435860998286396, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 20786, 1, 2017/12/29, 17:24:21.132, 435861017529715, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:49.373, 435889258548043, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:49.961, 435889846308724, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:50.164, 435890048643206, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:50.240, 435890125342271, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:50.242, 435890127340842, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:50.242, 435890127443438, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:50.242, 435890127500518, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:50.242, 435890127545554, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:51.214, 435891099435135, vstest.console.dll, Trying to connect to server on port : 41921
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:51.294, 435891179061392, vstest.console.dll, Trying to connect to server on port : 41921
TpTrace Information: 0 : 1033, 4, 2017/12/29, 17:24:51.424, 435891309501015, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:52.399, 435892283740896, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:52.418, 435892303540936, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:52.421, 435892305925134, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:52.421, 435892306044799, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:52.423, 435892308538769, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:57.344, 435897228773600, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:57.349, 435897234198168, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:57.417, 435897302443625, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:57.423, 435897308570159, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:57.425, 435897310384823, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:57.426, 435897311063201, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.427, 435897312252788, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.432, 435897317268355, vstest.console.dll, Listening on port : 43697
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.463, 435897347836438, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.463, 435897347992930, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.463, 435897348054622, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.484, 435897369143557, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.485, 435897369650335, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.526, 435897410929624, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.649, 435897534079561, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 1033, 9, 2017/12/29, 17:24:57.676, 435897561036792, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.677, 435897561891548, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.679, 435897563885420, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.694, 435897579612023, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.695, 435897579741713, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.704, 435897588892907, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 1033, 9, 2017/12/29, 17:24:57.704, 435897589007677, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 1033, 9, 2017/12/29, 17:24:57.704, 435897589603938, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 1033, 1, 2017/12/29, 17:24:57.706, 435897590907084, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:57.706, 435897590966497, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 1033, 1, 2017/12/29, 17:24:57.706, 435897590997134, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 1033, 1, 2017/12/30, 19:47:45.499, 530865383883064, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 1033, 1, 2017/12/30, 19:47:46.285, 530866170548682, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 1033, 1, 2017/12/30, 19:47:46.330, 530866214801961, vstest.console.dll, Executor.Execute: Exiting with exit code of 1
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.419, 530916304497091, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:36.732, 530916617600839, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolving assembly.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:36.819, 530916703741140, vstest.console.dll, AssemblyResolver: Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger: Resolved assembly.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.878, 530916763634879, vstest.console.dll, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.880, 530916765601339, vstest.console.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.881, 530916765713420, vstest.console.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.881, 530916765765412, vstest.console.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:36.881, 530916765803391, vstest.console.dll, TestPluginCache: Loggers are 'logger://Microsoft/TestPlatform/TrxLogger/v2'.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:37.559, 530917443639247, vstest.console.dll, Trying to connect to server on port : 43631
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:37.740, 530917624780895, vstest.console.dll, Trying to connect to server on port : 43631
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:37.887, 530917772536718, vstest.console.dll, Connected to the server successfully
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:40.916, 530920800904960, vstest.console.dll, DesignModeClient: Processing Message of message type: Extensions.Initialize
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:40.935, 530920820428686, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions started.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:40.938, 530920823173613, vstest.console.dll, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:40.938, 530920823352180, vstest.console.dll, TestRequestManager.InitializeExtensions: Initialize extensions completed.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:40.941, 530920826591159, vstest.console.dll, DesignModeClient: Processing Message of message type: ProtocolVersion
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:45.865, 530925749648328, vstest.console.dll, DesignModeClient: Processing Message of message type: TestDiscovery.Start
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:45.870, 530925755093616, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests started.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:46.407, 530926292143442, vstest.console.dll, TestEngine: Initializing Parallel Execution as MaxCpuCount is set to: 1
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:46.413, 530926298019081, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Starting.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:46.415, 530926299803616, vstest.console.dll, DiscoveryRequest.DiscoverAsync: Started.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:46.415, 530926300196424, vstest.console.dll, DiscoveryRequest.WaitForCompletion: Waiting with timeout -1.
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:46.416, 530926301170915, vstest.console.dll, ProxyParallelDiscoveryManager: Triggering test discovery for next source: /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:46.421, 530926306087421, vstest.console.dll, Listening on port : 50181
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.580, 530928464820347, vstest.console.dll, DotnetTestHostmanager: Full path of dotnet.exe is /home/paul/.dotnet/dotnet
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.580, 530928465394285, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.runtimeconfig.json, doesnot exist
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.580, 530928465467089, vstest.console.dll, DotnetTestHostmanager: File /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.deps.json, doesnot exist
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.822, 530928706763906, vstest.console.dll, DotnetTestHostManager: Assume published test project, with test host path = /home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/testhost.dll.
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:48.822, 530928707419074, vstest.console.dll, AssemblyResolver: Microsoft.TestPlatform.CrossPlatEngine.resources: Resolving assembly.
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.847, 530928732536220, vstest.console.dll, DotnetTestHostmanager: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:48.954, 530928839162449, vstest.console.dll, AssemblyResolver: System.Core: Resolving assembly.
TpTrace Error: 0 : 11330, 4, 2017/12/30, 19:48:48.996, 530928881575291, vstest.console.dll, ProxyDiscoveryManager.DiscoverTests: Failed to discover tests: System.IO.FileNotFoundException: testhost.dll est introuvable pour la source '/home/paul/workspace/yavsc/Yavsc/bin/Debug/netcoreapp1.0/UnitTest.dll'. Vérifiez que le projet de test a une référence nuget du package "microsoft.testplatform.testhost".
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:48.997, 530928882452448, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Starting.
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:48.999, 530928884345886, vstest.console.dll, DiscoveryRequest.SendDiscoveryMessage: Completed.
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:49.014, 530928899018159, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Starting.
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:49.014, 530928899128657, vstest.console.dll, DiscoveryRequest.SendDiscoveredTests: Completed.
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:49.022, 530928906912396, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Starting. Aborted:False, TotalTests:0
TpTrace Verbose: 0 : 11330, 4, 2017/12/30, 19:48:49.022, 530928907171990, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Notified the discovery complete event.
TpTrace Information: 0 : 11330, 4, 2017/12/30, 19:48:49.022, 530928907527746, vstest.console.dll, DiscoveryRequest.DiscoveryComplete: Completed.
TpTrace Verbose: 0 : 11330, 1, 2017/12/30, 19:48:49.024, 530928909601348, vstest.console.dll, DiscoveryRequest.Dispose: Starting.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:49.025, 530928909676373, vstest.console.dll, DiscoveryRequest.Dispose: Completed.
TpTrace Information: 0 : 11330, 1, 2017/12/30, 19:48:49.025, 530928909706027, vstest.console.dll, TestRequestManager.DiscoverTests: Discovery tests completed, sucessful: True.
TpTrace Error: 0 : 11330, 1, 2017/12/31, 22:29:28.872, 626968757362599, vstest.console.dll, DesignModeClient: Error processing request: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.ProcessRequests(ITestRequestManager testRequestManager)
TpTrace Error: 0 : 11330, 1, 2017/12/31, 22:29:29.011, 626968896518450, vstest.console.dll, ExecuteArgumentProcessor: failed to execute argument process: Microsoft.VisualStudio.TestPlatform.CommandLine.CommandLineException: Aucun fichier source de test n'a été spécifié.
at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentExecutor.Execute()
at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.ExecuteArgumentProcessor(IArgumentProcessor processor, Int32& exitCode)
TpTrace Verbose: 0 : 11330, 1, 2017/12/31, 22:29:29.012, 626968897530782, vstest.console.dll, Executor.Execute: Exiting with exit code of 1

View File

@ -48,8 +48,8 @@ namespace Yavsc
using (var db = new ApplicationDbContext()) {
var user = db.Users.Single(u => u.UserName == userName);
if (user.Connections==null)
user.Connections = new List<Connection>();
user.Connections.Add(new Connection
user.Connections = new List<ChatConnection>();
user.Connections.Add(new ChatConnection
{
ConnectionId = Context.ConnectionId,
UserAgent = Context.Request.Headers["User-Agent"],
@ -103,7 +103,7 @@ namespace Yavsc
using (var db = new ApplicationDbContext()) {
var user = db.Users.Single(u => u.UserName == userName);
if (user.Connections==null) user.Connections = new List<Connection>();
if (user.Connections==null) user.Connections = new List<ChatConnection>();
var cx = user.Connections.SingleOrDefault(c => c.ConnectionId == Context.ConnectionId);
@ -112,7 +112,7 @@ namespace Yavsc
cx.Connected = true;
db.SaveChanges();
}
else cx = new Connection { ConnectionId = Context.ConnectionId,
else cx = new ChatConnection { ConnectionId = Context.ConnectionId,
UserAgent = Context.Request.Headers["User-Agent"],
Connected = true };
}

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,843 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations
{
public partial class chatRooms : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId", table: "AspNetRoleClaims");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId", table: "AspNetUserClaims");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId", table: "AspNetUserLogins");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_IdentityRole_RoleId", table: "AspNetUserRoles");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_ApplicationUser_UserId", table: "AspNetUserRoles");
migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed");
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost");
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost");
migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance");
migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact");
migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine");
migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate");
migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate");
migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag");
migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag");
migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment");
migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment");
migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule");
migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem");
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem");
migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint");
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance");
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance");
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked");
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked");
migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation");
migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment");
migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember");
migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember");
migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm");
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile");
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity");
migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity");
migrationBuilder.DropTable("Connection");
migrationBuilder.CreateTable(
name: "ChatConnection",
columns: table => new
{
ConnectionId = table.Column<string>(nullable: false),
ApplicationUserId = table.Column<string>(nullable: false),
Connected = table.Column<bool>(nullable: false),
UserAgent = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ChatConnection", x => x.ConnectionId);
table.ForeignKey(
name: "FK_ChatConnection_ApplicationUser_ApplicationUserId",
column: x => x.ApplicationUserId,
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "ChatRoom",
columns: table => new
{
Name = table.Column<string>(nullable: false),
ApplicationUserId = table.Column<string>(nullable: true),
Topic = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ChatRoom", x => x.Name);
table.ForeignKey(
name: "FK_ChatRoom_ApplicationUser_ApplicationUserId",
column: x => x.ApplicationUserId,
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "ChatRoomPresence",
columns: table => new
{
ChannelName = table.Column<string>(nullable: false),
ChatUserConnectionId = table.Column<string>(nullable: false),
Level = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ChatRoomPresence", x => new { x.ChannelName, x.ChatUserConnectionId });
table.ForeignKey(
name: "FK_ChatRoomPresence_ChatRoom_ChannelName",
column: x => x.ChannelName,
principalTable: "ChatRoom",
principalColumn: "Name",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_ChatRoomPresence_ChatConnection_ChatUserConnectionId",
column: x => x.ChatUserConnectionId,
principalTable: "ChatConnection",
principalColumn: "ConnectionId",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.AlterColumn<long>(
name: "FeatureId",
table: "Bug",
nullable: true);
migrationBuilder.AddColumn<long>(
name: "MaxFileSize",
table: "AspNetUsers",
nullable: false,
defaultValue: 0L);
migrationBuilder.AddForeignKey(
name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId",
table: "AspNetRoleClaims",
column: "RoleId",
principalTable: "AspNetRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId",
table: "AspNetUserClaims",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId",
table: "AspNetUserLogins",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserRole<string>_IdentityRole_RoleId",
table: "AspNetUserRoles",
column: "RoleId",
principalTable: "AspNetRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserRole<string>_ApplicationUser_UserId",
table: "AspNetUserRoles",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_BlackListed_ApplicationUser_OwnerId",
table: "BlackListed",
column: "OwnerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId",
table: "CircleAuthorizationToBlogPost",
column: "BlogPostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId",
table: "CircleAuthorizationToBlogPost",
column: "CircleId",
principalTable: "Circle",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_AccountBalance_ApplicationUser_UserId",
table: "AccountBalance",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_BalanceImpact_AccountBalance_BalanceId",
table: "BalanceImpact",
column: "BalanceId",
principalTable: "AccountBalance",
principalColumn: "UserId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CommandLine_Estimate_EstimateId",
table: "CommandLine",
column: "EstimateId",
principalTable: "Estimate",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Estimate_ApplicationUser_ClientId",
table: "Estimate",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Estimate_PerformerProfile_OwnerId",
table: "Estimate",
column: "OwnerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_BlogTag_BlogPost_PostId",
table: "BlogTag",
column: "PostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_BlogTag_Tag_TagId",
table: "BlogTag",
column: "TagId",
principalTable: "Tag",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Comment_ApplicationUser_AuthorId",
table: "Comment",
column: "AuthorId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Comment_BlogPost_PostId",
table: "Comment",
column: "PostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Schedule_ApplicationUser_OwnerId",
table: "Schedule",
column: "OwnerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_BrusherProfile_PerformerProfile_UserId",
table: "BrusherProfile",
column: "UserId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_Activity_ActivityCode",
table: "HairCutQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_ApplicationUser_ClientId",
table: "HairCutQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_PerformerProfile_PerformerId",
table: "HairCutQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_HairPrestation_PrestationId",
table: "HairCutQuery",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_Activity_ActivityCode",
table: "HairMultiCutQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_ApplicationUser_ClientId",
table: "HairMultiCutQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId",
table: "HairMultiCutQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId",
table: "HairPrestationCollectionItem",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId",
table: "HairPrestationCollectionItem",
column: "QueryId",
principalTable: "HairMultiCutQuery",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairTaint_Color_ColorId",
table: "HairTaint",
column: "ColorId",
principalTable: "Color",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairTaintInstance_HairPrestation_PrestationId",
table: "HairTaintInstance",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_HairTaintInstance_HairTaint_TaintId",
table: "HairTaintInstance",
column: "TaintId",
principalTable: "HairTaint",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Bug_Feature_FeatureId",
table: "Bug",
column: "FeatureId",
principalTable: "Feature",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_DimissClicked_Notification_NotificationId",
table: "DimissClicked",
column: "NotificationId",
principalTable: "Notification",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_DimissClicked_ApplicationUser_UserId",
table: "DimissClicked",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Instrumentation_Instrument_InstrumentId",
table: "Instrumentation",
column: "InstrumentId",
principalTable: "Instrument",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_PayPalPayment_ApplicationUser_ExecutorId",
table: "PayPalPayment",
column: "ExecutorId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CircleMember_Circle_CircleId",
table: "CircleMember",
column: "CircleId",
principalTable: "Circle",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CircleMember_ApplicationUser_MemberId",
table: "CircleMember",
column: "MemberId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CommandForm_Activity_ActivityCode",
table: "CommandForm",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_PerformerProfile_Location_OrganizationAddressId",
table: "PerformerProfile",
column: "OrganizationAddressId",
principalTable: "Location",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_PerformerProfile_ApplicationUser_PerformerId",
table: "PerformerProfile",
column: "PerformerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_Activity_ActivityCode",
table: "RdvQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_ApplicationUser_ClientId",
table: "RdvQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_PerformerProfile_PerformerId",
table: "RdvQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_UserActivity_Activity_DoesCode",
table: "UserActivity",
column: "DoesCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_UserActivity_PerformerProfile_UserId",
table: "UserActivity",
column: "UserId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Cascade);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId", table: "AspNetRoleClaims");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId", table: "AspNetUserClaims");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId", table: "AspNetUserLogins");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_IdentityRole_RoleId", table: "AspNetUserRoles");
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_ApplicationUser_UserId", table: "AspNetUserRoles");
migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed");
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost");
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost");
migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance");
migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact");
migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine");
migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate");
migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate");
migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag");
migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag");
migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment");
migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment");
migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule");
migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery");
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem");
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem");
migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint");
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance");
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance");
migrationBuilder.DropForeignKey(name: "FK_Bug_Feature_FeatureId", table: "Bug");
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked");
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked");
migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation");
migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment");
migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember");
migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember");
migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm");
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile");
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery");
migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity");
migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity");
migrationBuilder.DropColumn(name: "MaxFileSize", table: "AspNetUsers");
migrationBuilder.DropTable("ChatRoomPresence");
migrationBuilder.DropTable("ChatRoom");
migrationBuilder.DropTable("ChatConnection");
migrationBuilder.CreateTable(
name: "Connection",
columns: table => new
{
ConnectionId = table.Column<string>(nullable: false),
ApplicationUserId = table.Column<string>(nullable: false),
Connected = table.Column<bool>(nullable: false),
UserAgent = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Connection", x => x.ConnectionId);
table.ForeignKey(
name: "FK_Connection_ApplicationUser_ApplicationUserId",
column: x => x.ApplicationUserId,
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.AlterColumn<long>(
name: "FeatureId",
table: "Bug",
nullable: false);
migrationBuilder.AddForeignKey(
name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId",
table: "AspNetRoleClaims",
column: "RoleId",
principalTable: "AspNetRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId",
table: "AspNetUserClaims",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId",
table: "AspNetUserLogins",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserRole<string>_IdentityRole_RoleId",
table: "AspNetUserRoles",
column: "RoleId",
principalTable: "AspNetRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_IdentityUserRole<string>_ApplicationUser_UserId",
table: "AspNetUserRoles",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_BlackListed_ApplicationUser_OwnerId",
table: "BlackListed",
column: "OwnerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId",
table: "CircleAuthorizationToBlogPost",
column: "BlogPostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId",
table: "CircleAuthorizationToBlogPost",
column: "CircleId",
principalTable: "Circle",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_AccountBalance_ApplicationUser_UserId",
table: "AccountBalance",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_BalanceImpact_AccountBalance_BalanceId",
table: "BalanceImpact",
column: "BalanceId",
principalTable: "AccountBalance",
principalColumn: "UserId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CommandLine_Estimate_EstimateId",
table: "CommandLine",
column: "EstimateId",
principalTable: "Estimate",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Estimate_ApplicationUser_ClientId",
table: "Estimate",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Estimate_PerformerProfile_OwnerId",
table: "Estimate",
column: "OwnerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_BlogTag_BlogPost_PostId",
table: "BlogTag",
column: "PostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_BlogTag_Tag_TagId",
table: "BlogTag",
column: "TagId",
principalTable: "Tag",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Comment_ApplicationUser_AuthorId",
table: "Comment",
column: "AuthorId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Comment_BlogPost_PostId",
table: "Comment",
column: "PostId",
principalTable: "BlogPost",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Schedule_ApplicationUser_OwnerId",
table: "Schedule",
column: "OwnerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_BrusherProfile_PerformerProfile_UserId",
table: "BrusherProfile",
column: "UserId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_Activity_ActivityCode",
table: "HairCutQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_ApplicationUser_ClientId",
table: "HairCutQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_PerformerProfile_PerformerId",
table: "HairCutQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairCutQuery_HairPrestation_PrestationId",
table: "HairCutQuery",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_Activity_ActivityCode",
table: "HairMultiCutQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_ApplicationUser_ClientId",
table: "HairMultiCutQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId",
table: "HairMultiCutQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId",
table: "HairPrestationCollectionItem",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId",
table: "HairPrestationCollectionItem",
column: "QueryId",
principalTable: "HairMultiCutQuery",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairTaint_Color_ColorId",
table: "HairTaint",
column: "ColorId",
principalTable: "Color",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairTaintInstance_HairPrestation_PrestationId",
table: "HairTaintInstance",
column: "PrestationId",
principalTable: "HairPrestation",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_HairTaintInstance_HairTaint_TaintId",
table: "HairTaintInstance",
column: "TaintId",
principalTable: "HairTaint",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_DimissClicked_Notification_NotificationId",
table: "DimissClicked",
column: "NotificationId",
principalTable: "Notification",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_DimissClicked_ApplicationUser_UserId",
table: "DimissClicked",
column: "UserId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_Instrumentation_Instrument_InstrumentId",
table: "Instrumentation",
column: "InstrumentId",
principalTable: "Instrument",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_PayPalPayment_ApplicationUser_ExecutorId",
table: "PayPalPayment",
column: "ExecutorId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CircleMember_Circle_CircleId",
table: "CircleMember",
column: "CircleId",
principalTable: "Circle",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CircleMember_ApplicationUser_MemberId",
table: "CircleMember",
column: "MemberId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_CommandForm_Activity_ActivityCode",
table: "CommandForm",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_PerformerProfile_Location_OrganizationAddressId",
table: "PerformerProfile",
column: "OrganizationAddressId",
principalTable: "Location",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_PerformerProfile_ApplicationUser_PerformerId",
table: "PerformerProfile",
column: "PerformerId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_Activity_ActivityCode",
table: "RdvQuery",
column: "ActivityCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_ApplicationUser_ClientId",
table: "RdvQuery",
column: "ClientId",
principalTable: "AspNetUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_RdvQuery_PerformerProfile_PerformerId",
table: "RdvQuery",
column: "PerformerId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_UserActivity_Activity_DoesCode",
table: "UserActivity",
column: "DoesCode",
principalTable: "Activity",
principalColumn: "Code",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_UserActivity_PerformerProfile_UserId",
table: "UserActivity",
column: "UserId",
principalTable: "PerformerProfile",
principalColumn: "PerformerId",
onDelete: ReferentialAction.Restrict);
}
}
}

View File

@ -1,8 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;
namespace Yavsc.Migrations
@ -183,6 +181,8 @@ namespace Yavsc.Migrations
b.Property<DateTimeOffset?>("LockoutEnd");
b.Property<long>("MaxFileSize");
b.Property<string>("NormalizedEmail")
.HasAnnotation("MaxLength", 256);
@ -480,7 +480,7 @@ namespace Yavsc.Migrations
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Models.Chat.Connection", b =>
modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b =>
{
b.Property<string>("ConnectionId");
@ -494,6 +494,30 @@ namespace Yavsc.Migrations
b.HasKey("ConnectionId");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b =>
{
b.Property<string>("Name")
.HasAnnotation("MaxLength", 255);
b.Property<string>("ApplicationUserId");
b.Property<string>("Topic")
.HasAnnotation("MaxLength", 1023);
b.HasKey("Name");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b =>
{
b.Property<string>("ChannelName");
b.Property<string>("ChatUserConnectionId");
b.Property<int>("Level");
b.HasKey("ChannelName", "ChatUserConnectionId");
});
modelBuilder.Entity("Yavsc.Models.Cratie.Option", b =>
{
b.Property<string>("Code");
@ -784,7 +808,7 @@ namespace Yavsc.Migrations
b.Property<string>("Description");
b.Property<long>("FeatureId");
b.Property<long?>("FeatureId");
b.Property<int>("Status");
@ -1429,13 +1453,31 @@ namespace Yavsc.Migrations
.HasForeignKey("PeriodStart", "PeriodEnd");
});
modelBuilder.Entity("Yavsc.Models.Chat.Connection", b =>
modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ApplicationUserId");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ApplicationUserId");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b =>
{
b.HasOne("Yavsc.Models.Chat.ChatRoom")
.WithMany()
.HasForeignKey("ChannelName");
b.HasOne("Yavsc.Models.Chat.ChatConnection")
.WithMany()
.HasForeignKey("ChatUserConnectionId");
});
modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b =>
{
b.HasOne("Yavsc.Models.Calendar.Schedule")
@ -1537,6 +1579,13 @@ namespace Yavsc.Migrations
.HasForeignKey("DeviceOwnerId");
});
modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b =>
{
b.HasOne("Yavsc.Models.IT.Maintaining.Feature")
.WithMany()
.HasForeignKey("FeatureId");
});
modelBuilder.Entity("Yavsc.Models.Market.Service", b =>
{
b.HasOne("Yavsc.Models.Workflow.Activity")

View File

@ -1,10 +1,14 @@
using Microsoft.AspNet.Authorization;
namespace Yavsc.Models.Access
{
public abstract class Rule<TResource> where TResource : IAuthorizationRequirement
public abstract class Rule<TResource,TRequirement>
{
public virtual bool Mandatory { get; set; }
public abstract bool Allow(ApplicationUser user);
public Rule()
{
}
// Abstract method to compute any authorization on a resource
public abstract bool Allow(ApplicationDbContext context, string userId, TResource resource, TRequirement requirement);
}
}

View File

@ -1,16 +1,10 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Authorization;
namespace Yavsc.Models.Access
{
public abstract class RuleSet <TResource,TRequirement>:List<Rule<TResource,TRequirement>> {
public class RuleSet <TResource>:List<Rule<TResource>> where TResource : IAuthorizationRequirement{
bool Allow(ApplicationUser user)
{
throw new NotImplementedException();
}
public abstract bool Allow(ApplicationDbContext context, string userId, TResource resource, TRequirement requirement);
}
}

View File

@ -45,7 +45,7 @@ namespace Yavsc.Models
builder.Entity<Relationship.Contact>().HasKey(x => new { x.OwnerId, x.UserId });
builder.Entity<GoogleCloudMobileDeclaration>().Property(x=>x.DeclarationDate).HasDefaultValueSql("LOCALTIMESTAMP");
builder.Entity<BlogTag>().HasKey(x=>new { x.PostId, x.TagId});
builder.Entity<ApplicationUser>().HasMany<Connection>( c=>c.Connections );
builder.Entity<ApplicationUser>().HasMany<ChatConnection>( c=>c.Connections );
builder.Entity<ApplicationUser>().Property(u=>u.Avatar).HasDefaultValue(Constants.DefaultAvatar);
builder.Entity<ApplicationUser>().Property(u=>u.DiskQuota).HasDefaultValue(Constants.DefaultFSQ);
builder.Entity<UserActivity>().HasKey(u=> new { u.DoesCode, u.UserId});
@ -58,6 +58,7 @@ namespace Yavsc.Models
builder.Entity<Period>().HasKey(l=>new { l.Start, l.End });
builder.Entity<Models.Cratie.Option>().HasKey( o => new { o.Code, o.CodeScrutin });
builder.Entity<Notification>().Property(n=> n.icon).HasDefaultValue("exclam");
builder.Entity<ChatRoomPresence>().HasKey(p=>new { room = p.ChannelName, user = p.ChatUserConnectionId });
foreach (var et in builder.Model.GetEntityTypes()) {
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
@ -197,7 +198,7 @@ namespace Yavsc.Models
public DbSet<ClientProviderInfo> ClientProviderInfo { get; set; }
public DbSet<Connection> Connections { get; set; }
public DbSet<ChatConnection> Connections { get; set; }
public DbSet<BlackListed> BlackListed { get; set; }
@ -293,5 +294,10 @@ namespace Yavsc.Models
public DbSet<Comment> Comment { get; set; }
public DbSet<Announce> Announce { get; set; }
public DbSet<ChatConnection> ChatConnection { get; set; }
public DbSet<ChatRoom> ChatRoom { get; set; }
}
}

View File

@ -19,25 +19,32 @@
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using Newtonsoft.Json;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Yavsc.Models.Chat
{
using Yavsc;
public class Connection : IConnection
public class ChatConnection : Abstract.Streaming.IChatConnection<ChatRoomPresence>
{
[JsonIgnore,Required]
public string ApplicationUserId { get; set; }
[ForeignKey("ApplicationUserId"),JsonIgnore]
public virtual ApplicationUser Owner { get; set; }
[Key]
public string ConnectionId { get; set; }
public string UserAgent { get; set; }
public bool Connected { get; set; }
[InverseProperty("ChatUserConnection")]
public virtual List<ChatRoomPresence> Rooms { get; set; }
}
}

View File

@ -0,0 +1,27 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Abstract.Streaming;
namespace Yavsc.Models.Chat
{
public class ChatRoom: IChatRoom<ChatRoomPresence>
{
[StringLengthAttribute(1023,MinimumLength=1)]
public string Topic { get; set; }
[Key]
[StringLengthAttribute(255,MinimumLength=1)]
public string Name { get; set;}
public string ApplicationUserId { get; set; }
[ForeignKey("ApplicationUserId")]
public virtual ApplicationUser Owner { get; set; }
[InverseProperty("Room")]
public virtual List<ChatRoomPresence> UserList { get; set;}
}
}

View File

@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Abstract.Streaming;
namespace Yavsc.Models.Chat
{
public class ChatRoomPresence: IChatRoomUsage
{
public string ChannelName { get; set; }
[ForeignKey("ChannelName")]
public virtual ChatRoom Room { get; set; }
public string ChatUserConnectionId { get; set; }
[ForeignKey("ChatUserConnectionId")]
public virtual ChatConnection ChatUserConnection { get; set; }
public ChatRoomUsageLevel Level
{
get; set;
}
}
}

View File

@ -60,7 +60,7 @@ namespace Yavsc.Models
public virtual List<GoogleCloudMobileDeclaration> Devices { get; set; }
[InverseProperty("Owner"),JsonIgnore]
public virtual List<Connection> Connections { get; set; }
public virtual List<ChatConnection> Connections { get; set; }
/// <summary>
@ -94,6 +94,8 @@ namespace Yavsc.Models
public long DiskQuota { get; set; } = 512*1024*1024;
public long DiskUsage { get; set; } = 0;
public long MaxFileSize { get; set; } = 512*1024*1024;
[JsonIgnore][InverseProperty("Owner")]
public virtual List<BlackListed> BlackList { get; set; }
}

View File

@ -35,6 +35,9 @@ namespace Yavsc
if (webSocket != null && webSocket.State == WebSocketState.Open)
{
// TODO: Handle the socket here.
// Find receivers: others in the chat room
// send them the flow
byte[] buffer = new byte[1024];
WebSocketReceiveResult received = await webSocket.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);
while (received.MessageType != WebSocketMessageType.Close)

View File

@ -0,0 +1,9 @@
using Microsoft.AspNet.Authorization;
namespace Yavsc.ViewModels.Auth
{
public class ModerationRequirement : IAuthorizationRequirement
{
public ModerationRequirement() {}
}
}

View File

@ -5,7 +5,7 @@ namespace Yavsc.ViewModels.Chat { 
public class ChatUserInfo : IChatUserInfo
{
public List<Connection> Connections { get; set; }
public List<ChatConnection> Connections { get; set; }
public string UserId { get; set; }
@ -19,7 +19,7 @@ public class ChatUserInfo : IChatUserInfo
public interface IChatUserInfo
{
List<Connection> Connections { get; set; }
List<ChatConnection> Connections { get; set; }
string UserId { get; set; }
string UserName { get; set; }

8
Yavsc/issue-1-mono.md Normal file
View File

@ -0,0 +1,8 @@
# using mono > 4.6.2 breaks the dnx behaviour
```term
SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.
in (wrapper managed-to-native) System.Threading.Monitor.Exit(object)
```

View File

@ -1,168 +1,169 @@
{
"version": "1.0.0-*",
"authors": [
"Paul Schneider"
],
"tags": [
"Blog",
"PoS",
"Chat"
],
"projectUrl": "http://yavsc.pschneider.fr",
"licenseUrl": "",
"userSecretsId": "aspnet5-YavscWeb-a0dadd21-2ced-43d3-96f9-7e504345102f",
"compilationOptions": {
"emitEntryPoint": true,
"debugType": "portable",
"outputName": "Yavsc"
},
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true
},
"compile": [
"*.cs"
],
"resource": [
"Resources/**/*.resx"
],
"namedResource": {},
"configurations": {
"Debug": {
"compilationOptions": {
"version": "1.0.0-*",
"authors": [
"Paul Schneider"
],
"tags": [
"Blog",
"PoS",
"Chat"
],
"projectUrl": "http://yavsc.pschneider.fr",
"licenseUrl": "",
"userSecretsId": "aspnet5-YavscWeb-a0dadd21-2ced-43d3-96f9-7e504345102f",
"compilationOptions": {
"emitEntryPoint": true,
"define": [
"DEBUG",
"TRACE"
],
"optimize": false,
"debugType": "portable"
}
"debugType": "full",
"outputName": "Yavsc"
},
"Release": {
"compilationOptions": {
"define": [
"RELEASE",
"TRACE"
],
"optimize": true
}
}
},
"webroot": "wwwroot",
"tooling": {
"defaultNamespace": "Yavsc"
},
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.Core": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"EntityFramework.Relational": "7.0.0-rc1-final",
"EntityFramework7.Npgsql": "3.1.0-rc1-3",
"EntityFramework7.Npgsql.Design": "3.1.0-rc1-5",
"MailKit": "1.12.0",
"MarkdownDeep-av.NET": "1.5.6",
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.Facebook": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.Twitter": "1.0.0-rc1-final",
"Microsoft.AspNet.Authorization": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
"Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-*",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-*",
"Microsoft.AspNet.Localization": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
"Microsoft.AspNet.SignalR.Core": "2.2.1",
"Microsoft.AspNet.SignalR.JS": "2.2.1",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-*",
"Microsoft.AspNet.WebSockets.Server": "1.0.0-rc1-*",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.TraceSource": "1.0.0-rc1-final",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-rc1-final",
"Microsoft.Extensions.Localization": "1.0.0-rc1-final",
"Microsoft.Extensions.Localization.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGeneration": "1.0.0-rc1-final",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
"Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8",
"Microsoft.Framework.Configuration.Binder": "1.0.0-beta8",
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
"Microsoft.AspNet.Session": "1.0.0-rc1-final",
"Microsoft.AspNet.Web.Optimization": "1.1.3",
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-rc1-final",
"Microsoft.Extensions.Options": "0.0.1-alpha",
"Microsoft.Extensions.WebEncoders": "1.0.0-rc1-final",
"Microsoft.AspNet.DataProtection": "1.0.0-rc1-final",
"Microsoft.AspNet.DataProtection.SystemWeb": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.OAuth": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
"Microsoft.AspNet.OWin": "1.0.0-rc1-final",
"System.Json": "4.0.20126.16343",
"Yavsc.Abstract": {
"type": "build",
"version": "1.0.0"
"buildOptions": {
"debugType": "full",
"emitEntryPoint": true
},
"Extensions.AspNet.Authentication.Instagram": "1.0.0-t150809211713",
"Microsoft.AspNet.Http.Extensions": "1.0.0-rc1-final",
"Microsoft.DiaSymReader.Native": "1.5.0",
"PayPalMerchant-net451": "2.7.109",
"Gapi.net45": "1.0.0"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
"coiffure": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:88",
"lua": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:85",
"luatest": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5001",
"kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
"zicmoove": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:87",
"yavsc": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:86",
"yavscpre": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:84",
"ef": "EntityFramework.Commands",
"gen": "Microsoft.Extensions.CodeGeneration"
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Drawing": "4.0.0.0",
"System.Net": "4.0.0.0",
"System.Xml": "4.0.0.0",
"System": "4.0.0.0"
}
}
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components",
"contrib"
],
"publishExclude": [
"**.user",
"**.vspscc",
"contrib/**/*.*"
],
"scripts": {
"prebuild": "echo before building",
"postbuild": "echo after building",
"prepack": "gulp min",
"postpack": "echo after packing",
"prerestore": "echo before restoring packages",
"postrestore": "echo after restoring packages",
"prepublish": "gulp min",
"postpublish": "echo after publish"
},
"embed": "Views/**/*.cshtml"
"compile": [
"*.cs"
],
"resource": [
"Resources/**/*.resx"
],
"namedResource": {},
"configurations": {
"Debug": {
"compilationOptions": {
"emitEntryPoint": true,
"define": [
"DEBUG",
"TRACE"
],
"optimize": false,
"debugType": "full",
"platform": "anycpu"
}
},
"Release": {
"compilationOptions": {
"define": [
"RELEASE",
"TRACE"
],
"optimize": true
}
}
},
"webroot": "wwwroot",
"tooling": {
"defaultNamespace": "Yavsc"
},
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.Core": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"EntityFramework.Relational": "7.0.0-rc1-final",
"EntityFramework7.Npgsql": "3.1.0-rc1-3",
"EntityFramework7.Npgsql.Design": "3.1.0-rc1-5",
"MailKit": "1.12.0",
"MarkdownDeep-av.NET": "1.5.6",
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.Facebook": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.Twitter": "1.0.0-rc1-final",
"Microsoft.AspNet.Authorization": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
"Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-*",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-*",
"Microsoft.AspNet.Localization": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
"Microsoft.AspNet.SignalR.Core": "2.2.1",
"Microsoft.AspNet.SignalR.JS": "2.2.1",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-*",
"Microsoft.AspNet.WebSockets.Server": "1.0.0-rc1-*",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.TraceSource": "1.0.0-rc1-final",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-rc1-final",
"Microsoft.Extensions.Localization": "1.0.0-rc1-final",
"Microsoft.Extensions.Localization.Abstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGeneration": "1.0.0-rc1-final",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
"Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8",
"Microsoft.Framework.Configuration.Binder": "1.0.0-beta8",
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
"Microsoft.AspNet.Session": "1.0.0-rc1-final",
"Microsoft.AspNet.Web.Optimization": "1.1.3",
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-rc1-final",
"Microsoft.Extensions.Options": "0.0.1-alpha",
"Microsoft.Extensions.WebEncoders": "1.0.0-rc1-final",
"Microsoft.AspNet.DataProtection": "1.0.0-rc1-final",
"Microsoft.AspNet.DataProtection.SystemWeb": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc1-final",
"Microsoft.AspNet.Authentication.OAuth": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
"Microsoft.AspNet.OWin": "1.0.0-rc1-final",
"System.Json": "4.0.20126.16343",
"Yavsc.Abstract": {
"type": "build",
"version": "1.0.0"
},
"Extensions.AspNet.Authentication.Instagram": "1.0.0-t150809211713",
"Microsoft.AspNet.Http.Extensions": "1.0.0-rc1-final",
"Microsoft.DiaSymReader.Native": "1.5.0",
"PayPalMerchant-net451": "2.7.109",
"Gapi.net45": "1.0.0"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
"coiffure": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:88",
"lua": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:85",
"luatest": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5001",
"kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000",
"zicmoove": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:87",
"yavsc": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:86",
"yavscpre": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:84",
"ef": "EntityFramework.Commands",
"gen": "Microsoft.Extensions.CodeGeneration"
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Drawing": "4.0.0.0",
"System.Net": "4.0.0.0",
"System.Xml": "4.0.0.0",
"System": "4.0.0.0"
}
}
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components",
"contrib"
],
"publishExclude": [
"**.user",
"**.vspscc",
"contrib/**/*.*"
],
"scripts": {
"prebuild": "echo before building",
"postbuild": "echo after building",
"prepack": "gulp min",
"postpack": "echo after packing",
"prerestore": "echo before restoring packages",
"postrestore": "echo after restoring packages",
"prepublish": "gulp min",
"postpublish": "echo after publish"
},
"embed": "Views/**/*.cshtml"
}

9
app/YaDaemon/Program.cs Normal file
View File

@ -0,0 +1,9 @@
using System;
class YaDaemon
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}

8
app/YaDaemon/YaDaemon.csproj Executable file
View File

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -1,11 +1,12 @@
{
"projects": [
"Yavsc",
"Yavsc.Abstract"
],
"sdk": {
"version": "1.0.0-rc1-update2",
"runtime": "mono",
"architecture": "x64"
}
"projects": [
"Yavsc",
"Yavsc.Abstract",
"YaDaemon"
],
"sdk": {
"version": "1.0.0-rc1-update2",
"runtime": "mono",
"architecture": "x64"
}
}

View File

@ -4,9 +4,11 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
<!-- <PackageReference Include="Microsoft.Build.Utilities.Core" Version="14.0.0"/> -->
<Content Include="UnitTest1.cs" />
</ItemGroup>
</Project>

11
yavsc.code-workspace Normal file
View File

@ -0,0 +1,11 @@
{
"folders": [
{
"path": "Yavsc"
},
{
"path": "Yavsc.Abstract"
}
],
"settings": {}
}