Commit 4595f28b by Artur Rachwał

publish works

parent 78a7858e
......@@ -7,8 +7,9 @@ namespace Pi.Hub.Api.Controllers
{
public object Get()
{
string text = System.IO.File.ReadAllText("C:\\apps\\msgs.txt");
return $"{{\"data\":[{text}]}}";
//string text = System.IO.File.ReadAllText("C:\\apps\\msgs.txt");
//return $"{{\"data\":[{text}]}}";
return new { };
}
}
}
\ No newline at end of file
......@@ -25,7 +25,7 @@ namespace Pi.Hub.Api.Controllers
public object Write([FromBody]object obj)
{
string serialized = JsonConvert.SerializeObject(obj);
System.IO.File.AppendAllLines("C:\\apps\\msgs.txt", new[] { $",{{\"object\":{serialized},\"timestamp\":\"{DateTime.Now:F}\"}}" });
//System.IO.File.AppendAllLines("C:\\apps\\msgs.txt", new[] { $",{{\"object\":{serialized},\"timestamp\":\"{DateTime.Now:F}\"}}" });
var client = new MqttClient("test.mosquitto.org");
string[] topic = { "e1s/iot.challange" };
......
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>b3aacbfb-2e61-4c99-a295-4d19571634b1</ProjectGuid>
<MSDeployServiceURL>iot-challange.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>1b8210cd-fd0d-4037-84b3-b4d9fd1ac3a3</ProjectGuid>
<MSDeployServiceURL>iot-challange.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange-dash</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange-dash.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>1b8210cd-fd0d-4037-84b3-b4d9fd1ac3a3</ProjectGuid>
<MSDeployServiceURL>iot-challange-dash.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange-dash</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange-dash</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1817/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"UI.Web.Dashboard": {
"commandName": "Project"
}
}
}
\ No newline at end of file
......@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pi.Hub.Api", "Pi.Hub.Api\Pi.Hub.Api.csproj", "{B3AACBFB-2E61-4C99-A295-4D19571634B1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pi.Hub.Api", "Pi.Hub.Api\Pi.Hub.Api.csproj", "{B3AACBFB-2E61-4C99-A295-4D19571634B1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UI.Web.Dashboard", "UI.Web.Dashboard\UI.Web.Dashboard.csproj", "{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -15,6 +17,10 @@ Global
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Release|Any CPU.Build.0 = Release|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment