mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Update namespaces
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,5 +2,6 @@ bin/
|
|||||||
log/
|
log/
|
||||||
obj/
|
obj/
|
||||||
.vs/
|
.vs/
|
||||||
|
_ReSharper.Caches/
|
||||||
|
|
||||||
Private/
|
Private/
|
||||||
@@ -13,4 +13,4 @@ RUN dotnet publish -r linux-arm --self-contained=false "SerialReader.csproj" -c
|
|||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
ENTRYPOINT ["dotnet", "Weather.SerialReader.dll"]
|
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Weather.SerialReader.dll"]
|
||||||
@@ -14,4 +14,4 @@ RUN dotnet publish "Service.csproj" -c Release -o /app
|
|||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
ENTRYPOINT ["dotnet", "Weather.Service.dll"]
|
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Weather.Service.dll"]
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<AssemblyName>Weather.Models</AssemblyName>
|
<AssemblyName>ChrisKaczor.HomeMonitor.Weather.Models</AssemblyName>
|
||||||
<RootNamespace>Weather.Models</RootNamespace>
|
<RootNamespace>ChrisKaczor.HomeMonitor.Weather.Models</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Weather.Models
|
namespace ChrisKaczor.HomeMonitor.Weather.Models
|
||||||
{
|
{
|
||||||
public enum MessageType
|
public enum MessageType
|
||||||
{
|
{
|
||||||
@@ -35,6 +35,7 @@ namespace Weather.Models
|
|||||||
NorthNorthWest = 338
|
NorthNorthWest = 338
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[PublicAPI]
|
||||||
public class WeatherMessage
|
public class WeatherMessage
|
||||||
{
|
{
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using System.IO.Ports;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Weather.Models;
|
using ChrisKaczor.HomeMonitor.Weather.Models;
|
||||||
|
|
||||||
namespace Weather.SerialReader
|
namespace ChrisKaczor.HomeMonitor.Weather.SerialReader
|
||||||
{
|
{
|
||||||
internal static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||||
<AssemblyName>Weather.SerialReader</AssemblyName>
|
<AssemblyName>ChrisKaczor.HomeMonitor.Weather.SerialReader</AssemblyName>
|
||||||
<RootNamespace>Weather.SerialReader</RootNamespace>
|
<RootNamespace>ChrisKaczor.HomeMonitor.Weather.SerialReader</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Weather.Service.Controllers
|
namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Dapper;
|
using ChrisKaczor.HomeMonitor.Weather.Models;
|
||||||
|
using Dapper;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Npgsql;
|
using Npgsql;
|
||||||
using Weather.Models;
|
|
||||||
|
|
||||||
namespace Weather.Service.Data
|
namespace ChrisKaczor.HomeMonitor.Weather.Service.Data
|
||||||
{
|
{
|
||||||
public class Database
|
public class Database
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ using System;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Weather.Models;
|
using ChrisKaczor.HomeMonitor.Weather.Models;
|
||||||
using Weather.Service.Data;
|
using ChrisKaczor.HomeMonitor.Weather.Service.Data;
|
||||||
|
|
||||||
namespace Weather.Service
|
namespace ChrisKaczor.HomeMonitor.Weather.Service
|
||||||
{
|
{
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public class MessageHandler : IHostedService
|
public class MessageHandler : IHostedService
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace Weather.Service
|
namespace ChrisKaczor.HomeMonitor.Weather.Service
|
||||||
{
|
{
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Weather.Service
|
namespace ChrisKaczor.HomeMonitor.Weather.Service
|
||||||
{
|
{
|
||||||
public static class ResourceReader
|
public static class ResourceReader
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
|
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
|
||||||
<AssemblyName>Weather.Service</AssemblyName>
|
<AssemblyName>ChrisKaczor.HomeMonitor.Weather.Service</AssemblyName>
|
||||||
<RootNamespace>Weather.Service</RootNamespace>
|
<RootNamespace>ChrisKaczor.HomeMonitor.Weather.Service</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Weather.Service.Data;
|
using ChrisKaczor.HomeMonitor.Weather.Service.Data;
|
||||||
|
|
||||||
namespace Weather.Service
|
namespace ChrisKaczor.HomeMonitor.Weather.Service
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user