Skip to content

Commit

Permalink
Version 4.0.2401.2601
Browse files Browse the repository at this point in the history
  • Loading branch information
gurux01 committed Jan 26, 2024
1 parent 92ce2c1 commit 6176db3
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Library</OutputType>
Expand All @@ -22,10 +22,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Gurux.DLMS.AMI.Components" Version="4.0.2311.1302" />
<PackageReference Include="Gurux.DLMS.AMI.Module" Version="4.0.2311.302" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.13" PrivateAssets="all" />
<PackageReference Include="Gurux.DLMS.AMI.Components" Version="4.0.2401.2601" />
<PackageReference Include="Gurux.DLMS.AMI.Module" Version="4.0.2401.2601" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@
StateHasChanged();
}

/// <inheritdoc />
public Task InitializeAsync()
{
//Nothing to do.
return Task.CompletedTask;
}

/// <inheritdoc />
public void Save()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
using System.Diagnostics;
using Microsoft.Extensions.Options;
using Gurux.DLMS.AMI.Shared;
using Gurux.DLMS.AMI.Shared.DTOs.Module;

namespace Gurux.SMTP.Server
{
Expand Down
102 changes: 101 additions & 1 deletion Gurux.DLMS.AMI.Modules/Gurux.SMTP/Gurux.SMTP/Server/GXSmtpModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ namespace Gurux.SMTP.Server
/// </summary>
public class GXSmtpModule : IAmiModule
{
/// <inheritdoc />
public string Id
{
get
{
return "Smtp";
}
}

/// <inheritdoc />
public string Name => "Smtp";

Expand All @@ -60,8 +69,55 @@ public Type Configuration
/// <inheritdoc />
public string Description => Properties.Resources.SMTPSettings;



/// <inheritdoc />
public string? Protocols
{
get
{
return null;
}
}

/// <inheritdoc />
public string? Help
{
get
{
return null;
}
}

/// <inheritdoc />
public Type? Extension
{
get
{
return null;
}
}

/// <inheritdoc />
public bool CanSchedule
{
get
{
return false;
}
}

/// <inheritdoc />
public Type? Schedule
{
get
{
return null;
}
}

/// <inheritdoc />
public void ConfigureModuleServices(IServiceCollection services,
public void ConfigureModuleServices(IServiceCollection services,
IConfiguration configuration)
{
services.Configure<SmtpOptions>(configuration.GetSection("Smtp"));
Expand Down Expand Up @@ -115,5 +171,49 @@ public void Stop(IServiceProvider services)
//Nothing to do for SMTP.
}

public void ConfigureMidlewares(IServiceCollection services)
{
throw new NotImplementedException();
}

public Task InstallAsync(ClaimsPrincipal user, IServiceProvider services, object module)
{
throw new NotImplementedException();
}

public void Update(ClaimsPrincipal user, IServiceProvider services, string current, string updated)
{
throw new NotImplementedException();
}

public Task UpdateAsync(ClaimsPrincipal user, IServiceProvider services, object current, object updated)
{
throw new NotImplementedException();
}

public Task UninstallAsync(ClaimsPrincipal user, IServiceProvider services, object module)
{
throw new NotImplementedException();
}

public Task StartAsync(IServiceProvider services)
{
throw new NotImplementedException();
}

public void Execute(ClaimsPrincipal user, IServiceProvider services, string? settings, string? instanceSettings)
{
throw new NotImplementedException();
}

public Task ExecuteAsync(ClaimsPrincipal user, IServiceProvider services, string? settings, string? instanceSettings)
{
throw new NotImplementedException();
}

public Task StopAsync(IServiceProvider services)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Library</OutputType>
Expand All @@ -28,8 +28,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Description>Gurux.SMTP adds SMTP support for Gurux DLMS AMI v4.</Description>
Expand All @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Gurux.DLMS.AMI.Shared" Version="4.0.2311.2103" />
<PackageReference Include="Gurux.DLMS.AMI.Shared" Version="4.0.2401.2601" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 6176db3

Please sign in to comment.