Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamecr committed Jul 7, 2019
1 parent 3f4edb7 commit 91fa6c3
Show file tree
Hide file tree
Showing 44 changed files with 5,904 additions and 6,367 deletions.
6 changes: 6 additions & 0 deletions Commons.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Version.props = Version.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "net.adamec.lib.common.core", "net.adamec.lib.common.core\net.adamec.lib.common.core.csproj", "{816D49A1-45D3-41BA-9F6D-7239D467E253}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -41,6 +43,10 @@ Global
{D09F8AE6-47AA-40B7-BFE7-E362B1C970C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D09F8AE6-47AA-40B7-BFE7-E362B1C970C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D09F8AE6-47AA-40B7-BFE7-E362B1C970C7}.Release|Any CPU.Build.0 = Release|Any CPU
{816D49A1-45D3-41BA-9F6D-7239D467E253}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{816D49A1-45D3-41BA-9F6D-7239D467E253}.Debug|Any CPU.Build.0 = Debug|Any CPU
{816D49A1-45D3-41BA-9F6D-7239D467E253}.Release|Any CPU.ActiveCfg = Release|Any CPU
{816D49A1-45D3-41BA-9F6D-7239D467E253}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
16 changes: 8 additions & 8 deletions Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
=======================================================================================
-->
<PropertyGroup>
<RadMajor>1</RadMajor>
<RadMinor>2</RadMinor>
<RadPatch>0</RadPatch>
<RadBuild>538</RadBuild>
<PackageVersionShort>1.2.0</PackageVersionShort>
<PackageVersionFull>1.2.0+538.190122135212.master.2404837</PackageVersionFull>
<GitCommit>2404837</GitCommit>
<GitBranch>master</GitBranch>
<RadMajor>2</RadMajor>
<RadMinor>0</RadMinor>
<RadPatch>1</RadPatch>
<RadBuild>552</RadBuild>
<PackageVersionShort>2.0.1</PackageVersionShort>
<PackageVersionFull>2.0.1+552.190707161143.release.eea80db</PackageVersionFull>
<GitCommit>eea80db</GitCommit>
<GitBranch>release</GitBranch>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions build.tasks/build.tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>7.1</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions build/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>7.1</LangVersion>
</PropertyGroup>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
Expand Down
18 changes: 18 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased ##

## [2.0.1] - 2019-07-07 ##
### Breaking Changes ###
Created nuget package `RadCommons.core` containing `BaseDisposable` class, `Configuration` class and logging that are no longer available as source-only packages mainly due to a `public` members and/or limitations of having them as `internal` (problems with inheritance in consuming code). This nuget package is needed by some of the source-only packages.

### Fixed ###
CommonLogging: Fix in DebugCorr (removed dummy log item)
BaseDisposable: DisposedManaged and DisposedNative thread safety
Configuration: removed reference to CommonLogging (was not used at all)
RadCommons.di.Component: removed reference to CommonLogging (was not used at all), removed reference to itself (fix)

### Changes ###
AsyncManager: removed reference to (and used of) CommonLogging
RadCommons.di.Config: removed reference to (and used of) CommonLogging
RadCommons.di.PostInit: removed reference to (and used of) CommonLogging

## [1.2.0] - 2019-01-22 ##
### Added ###
- Added `Disposer` - Keeps the stack of disposable objects, and disposes them when the disposer is being disposed.
Expand Down Expand Up @@ -56,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Initial release
- NuGet packages are not published yet, they will be published with v1.0.0

[2.0.1]: https://github.com/adamecr/Commons/compare/v1.2.0...v2.0.1
[1.2.0]: https://github.com/adamecr/Commons/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/adamecr/Commons/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/adamecr/Commons/compare/v0.1.0...v1.0.0
Expand Down
1,500 changes: 1,500 additions & 0 deletions doc/net.adamec.lib.common.core.html

Large diffs are not rendered by default.

3,171 changes: 3,171 additions & 0 deletions doc/net.adamec.lib.common.core.md

Large diffs are not rendered by default.

1,671 changes: 18 additions & 1,653 deletions doc/net.adamec.lib.common.html

Large diffs are not rendered by default.

5,580 changes: 1,063 additions & 4,517 deletions doc/net.adamec.lib.common.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Environment = System.Environment;
using InvalidCastException = System.InvalidCastException;

namespace net.adamec.lib.common.config
namespace net.adamec.lib.common.core.config
{
/// <summary>
/// Singleton holding the application configuration (options)
Expand Down Expand Up @@ -73,12 +73,6 @@ namespace net.adamec.lib.common.config
/// then <see cref="Retrieve{TOptionsContainer}"/> it from the cache when needed.
/// </para>
/// </remarks>
/// <NuProp.Id>RadCommons.config.Configuration</NuProp.Id>
/// <NuProp.Description>Simple configuration container in case DI with more sophisticated containers is not used. Supports the JSON config files, command line arguments
/// and environment variables as sources and their hierarchy/overrides. The configuration can be used as key-value pairs or bound to objects (Source only package).</NuProp.Description>
/// <NuProp.Tags>RadCommons source-only configuration</NuProp.Tags>
/// <NuProp.Using id = "RadCommons.logging.CommonLogging" />
/// <NuProp.Remarks cref ="T:net.adamec.lib.common.config.Configuration" />
public sealed class Configuration
{
#region Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<contentFiles>
<files include="cs/**/*.*" buildAction="Compile" />
</contentFiles>
<dependencies>
<dependency id="RadCommons.logging.CommonLogging" include="all" version="%%CURRENT_VERSION%%" />
</dependencies>
</metadata>
<files>
<file src="Configuration.cs" target="content\App_Packages\RadCommons.config.Configuration\Configuration.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System;
using NLog;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// <see cref="ILogger"/> factory
/// </summary>
internal static class CommonLogging
// ReSharper disable once PartialTypeWithSinglePart
public static class CommonLogging
{
/// <summary>
/// Creates the logger with given <paramref name="categoryName"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.ComponentModel;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Logger interface - wrapper around the <see cref="NLog.ILogger"/> with some additional methods
/// </summary>
internal partial interface ILogger
public partial interface ILogger
{
/// <summary>
/// Writes the diagnostic message at the <c>Trace</c> level with correlation ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using System.Collections.Generic;
using System.ComponentModel;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Logger interface - wrapper around the <see cref="NLog.ILogger"/> with some additional methods
/// </summary>
internal partial interface ILogger
public partial interface ILogger
{
/// <summary>
/// Writes the diagnostic message at the <c>Trace</c> level.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Logger interface - wrapper around the <see cref="NLog.ILogger"/> with some additional methods
/// </summary>
internal partial interface ILogger
public partial interface ILogger
{
/// <summary>
/// Writes the diagnostic message at the <c>Error</c> level and returns the exception of <typeparamref name="TException">given type</typeparamref>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Logger interface - wrapper around the <see cref="NLog.ILogger"/> with some additional methods
/// </summary>
internal partial interface ILogger
public partial interface ILogger
{
/// <summary>
/// Writes the diagnostic message at the <c>Error</c> level and returns given <paramref name="exception"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Logger interface - wrapper around the <see cref="NLog.ILogger"/> with some additional methods
Expand Down Expand Up @@ -85,7 +85,7 @@ namespace net.adamec.lib.common.logging
/// Such methods have the name ending with <c>Corr</c> suffix.
/// </para>
/// </remarks>
internal partial interface ILogger : NLog.ILogger
public partial interface ILogger : NLog.ILogger
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.ComponentModel;
using NLog;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Extended logger implementing <see cref="ILogger"/>
/// </summary>
internal partial class LoggerExt
public partial class LoggerExt
{
/// <summary>
/// Writes the diagnostic message at the <c>Trace</c> level with correlation ID
Expand All @@ -27,7 +27,6 @@ public void TraceCorr(string correlationId, [Localizable(false)] string message)
/// <param name="message">Log message.</param>
public void DebugCorr(string correlationId, [Localizable(false)] string message)
{
base.Debug("a", "a");
LogIt(LogLevel.Debug, correlationId, message);
}

Expand Down Expand Up @@ -113,7 +112,7 @@ public void FatalCorr(string correlationId, Exception exception, [Localizable(fa
/// <returns>Pass-through exception</returns>
public TException ErrorCorr<TException>(string correlationId, TException exception, string message = null) where TException : Exception
{
LogIt(LogLevel.Error, correlationId,string.IsNullOrWhiteSpace(message) ? exception.Message : message, exception);
LogIt(LogLevel.Error, correlationId, string.IsNullOrWhiteSpace(message) ? exception.Message : message, exception);
return exception;
}

Expand All @@ -126,7 +125,7 @@ public TException ErrorCorr<TException>(string correlationId, TException excepti
/// <returns>Pass-through exception</returns>
public TException FatalCorr<TException>(string correlationId, TException exception, string message = null) where TException : Exception
{
LogIt(LogLevel.Fatal, correlationId,string.IsNullOrWhiteSpace(message) ? exception.Message : message, exception);
LogIt(LogLevel.Fatal, correlationId, string.IsNullOrWhiteSpace(message) ? exception.Message : message, exception);
return exception;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.ComponentModel;
using NLog;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Extended logger implementing <see cref="ILogger"/>
/// </summary>
internal partial class LoggerExt
public partial class LoggerExt
{
/// <summary>
/// Writes the diagnostic message at the <c>Trace</c> level.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Extended logger implementing <see cref="ILogger"/>
/// </summary>
internal partial class LoggerExt
public partial class LoggerExt
{
/// <summary>
/// Writes the diagnostic message at the <c>Error</c> level and returns the exception of <typeparamref name="TException">given type</typeparamref>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using NLog;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Extended logger implementing <see cref="ILogger"/>
/// </summary>
internal partial class LoggerExt
public partial class LoggerExt
{
/// <summary>
/// Writes the diagnostic message at the <c>Error</c> level and returns given <paramref name="exception"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System.Diagnostics;
using NLog;

namespace net.adamec.lib.common.logging
namespace net.adamec.lib.common.core.logging
{
/// <summary>
/// Extended logger implementing <see cref="ILogger"/>
/// </summary>
internal partial class LoggerExt : Logger, ILogger
public partial class LoggerExt : Logger, ILogger
{
/// <summary>
/// Writes the diagnostic message at the <c>Fatal</c> level. Creates and returns the exception of <typeparamref name="TException">given type</typeparamref>
Expand Down
24 changes: 24 additions & 0 deletions net.adamec.lib.common.core/net.adamec.lib.common.core.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>RadCommons.core</PackageId>
<LangVersion>7.1</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NLog" Version="4.6.5" />
</ItemGroup>

<ItemGroup>
<None Update="config\Configuration.cs.partnuspec">
<DependentUpon>%(FileName)</DependentUpon>
</None>
<None Update="utils\BaseDisposable.cs.partnuspec">
<DependentUpon>%(FileName)</DependentUpon>
</None>
</ItemGroup>

</Project>
Loading

0 comments on commit 91fa6c3

Please sign in to comment.