Projektstruktur optimiert und Benutzer- & Gruppenverzeichnisdienste abgeschlossen.

This commit is contained in:
Developer 02
2024-03-08 15:00:37 +01:00
parent 846364351e
commit 085a1ffdec
363 changed files with 7785 additions and 8132 deletions

View File

@@ -1,23 +1,23 @@
using DigitalData.Core.Contracts.CleanArchitecture.Infrastructure;
namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
/// <summary>
/// Implements a simplified CRUD service interface that uses a single Data Transfer Object (DTO) type for all CRUD operations,
/// streamlining the process for entities where the same DTO can be used for creating, reading, updating, and deleting entities.
/// This interface inherits from the ICRUDService interface, applying the same DTO type for all generic type parameters,
/// thereby simplifying the usage for cases where a single DTO is sufficient for all operations on an entity.
/// </summary>
/// <typeparam name="TCRUDRepository">The repository type that provides CRUD operations for entities of type TEntity.</typeparam>
/// <typeparam name="TDto">The type of the Data Transfer Object used for all CRUD operations.</typeparam>
/// <typeparam name="TEntity">The type of the entity this service maps to.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
/// <remarks>
/// This interface is useful for entities that do not require different DTOs for different operations,
/// allowing for a more concise and maintainable codebase when implementing services for such entities.
/// </remarks>
public interface IBasicCRUDService<TCRUDRepository, TDto, TEntity, TId> : ICRUDService<TCRUDRepository, TDto, TDto, TDto, TEntity, TId>
where TCRUDRepository : ICRUDRepository<TEntity, TId> where TDto : class where TEntity : class
{
}
using DigitalData.Core.Contracts.Infrastructure;
namespace DigitalData.Core.Contracts.Application
{
/// <summary>
/// Implements a simplified CRUD service interface that uses a single Data Transfer Object (DTO) type for all CRUD operations,
/// streamlining the process for entities where the same DTO can be used for creating, reading, updating, and deleting entities.
/// This interface inherits from the ICRUDService interface, applying the same DTO type for all generic type parameters,
/// thereby simplifying the usage for cases where a single DTO is sufficient for all operations on an entity.
/// </summary>
/// <typeparam name="TCRUDRepository">The repository type that provides CRUD operations for entities of type TEntity.</typeparam>
/// <typeparam name="TDto">The type of the Data Transfer Object used for all CRUD operations.</typeparam>
/// <typeparam name="TEntity">The type of the entity this service maps to.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
/// <remarks>
/// This interface is useful for entities that do not require different DTOs for different operations,
/// allowing for a more concise and maintainable codebase when implementing services for such entities.
/// </remarks>
public interface IBasicCRUDService<TCRUDRepository, TDto, TEntity, TId> : ICRUDService<TCRUDRepository, TDto, TDto, TDto, TEntity, TId>
where TCRUDRepository : ICRUDRepository<TEntity, TId> where TDto : class where TEntity : class
{
}
}

View File

@@ -1,75 +1,75 @@
using DigitalData.Core.Contracts.CleanArchitecture.Infrastructure;
namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
/// <summary>
/// Defines the contract for CRUD operations at the service level using Data Transfer Objects (DTOs) for entities of type TEntity,
/// wrapped in an IServiceResult to encapsulate the outcome of the operation, including success, data, and error messages.
/// </summary>
/// <typeparam name="TCRUDRepository">The repository type that provides CRUD operations for entities of type TEntity.</typeparam>
/// <typeparam name="TCreateDto">The type of the Data Transfer Object this service works with to create new entity.</typeparam>
/// <typeparam name="TReadDto">The type of the Data Transfer Object this service works with to read new entity.</typeparam>
/// <typeparam name="TUpdateDto">The type of the Data Transfer Object this service works with to update new entity.</typeparam>
/// <typeparam name="TEntity">The type of the entity this service maps to.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
public interface ICRUDService<TCRUDRepository, TCreateDto, TReadDto, TUpdateDto, TEntity, TId>
where TCRUDRepository : ICRUDRepository<TEntity, TId> where TCreateDto : class where TReadDto : class where TUpdateDto : class where TEntity : class
{
/// <summary>
/// Creates a new entity based on the provided DTO and returns the result wrapped in an IServiceResult,
/// including the created entity on success or an error message on failure.
/// </summary>
/// <param name="createDto">The createDto to create a new entity from.</param>
/// <returns>An IServiceResult containing the id of created entity or an error message.</returns>
Task<IServiceResult<TId>> CreateAsync(TCreateDto createDto);
/// <summary>
/// Retrieves an entity by its identifier and returns its readDTO representation wrapped in an IServiceResult,
/// including the readDTO on success or null and an error message on failure.
/// </summary>
/// <param name="id">The identifier of the entity to retrieve.</param>
/// <returns>An IServiceResult containing the readDTO representing the found entity or null, with an appropriate message.</returns>
Task<IServiceResult<TReadDto>> ReadByIdAsync(TId id);
/// <summary>
/// Retrieves all entities and returns their readDTO representations wrapped in an IServiceResult,
/// including a collection of readDTOs on success or an error message on failure.
/// </summary>
/// <returns>An IServiceResult containing a collection of readDTOs representing all entities or an error message.</returns>
Task<IServiceResult<IEnumerable<TReadDto>>> ReadAllAsync();
/// <summary>
/// Updates an existing entity based on the provided updateDTO and returns the result wrapped in an IServiceMessage,
/// indicating the success or failure of the operation, including the error messages on failure.
/// </summary>
/// <param name="updateDto">The updateDTO with updated values for the entity.</param>
/// <returns>An IServiceMessage indicating the outcome of the update operation, with an appropriate message.</returns>
Task<IServiceMessage> UpdateAsync(TUpdateDto updateDto);
/// <summary>
/// Deletes an entity by its identifier and returns the result wrapped in an IServiceMessage,
/// indicating the success or failure of the operation, including the error messages on failure.
/// </summary>
/// <param name="id">The identifier of the entity to delete.</param>
/// <returns>An IServiceMessage indicating the outcome of the delete operation, with an appropriate message.</returns>
Task<IServiceMessage> DeleteAsyncById(TId id);
/// <summary>
/// Asynchronously checks if an entity with the specified identifier exists within the data store.
/// </summary>
/// <param name="id">The identifier of the entity to check.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains a boolean value indicating whether the entity exists.</returns>
Task<bool> HasEntity(TId id);
/// <summary>
/// Handles exceptions that occur within service actions. This method should log the exception
/// and return an String that contains information about the error, which can then be sent to the client.
/// The implementation should determine the appropriate level of detail to include in the error message
/// based on security and usability considerations.
/// </summary>
/// <param name="ex">The exception that occurred during the controller action.</param>
/// <returns>An string instance representing the outcome of the error handling process.
/// This includes a flag indicating the operation was unsuccessful and any relevant error messages.</returns>
string HandleException(Exception ex);
}
using DigitalData.Core.Contracts.Infrastructure;
namespace DigitalData.Core.Contracts.Application
{
/// <summary>
/// Defines the contract for CRUD operations at the service level using Data Transfer Objects (DTOs) for entities of type TEntity,
/// wrapped in an IServiceResult to encapsulate the outcome of the operation, including success, data, and error messages.
/// </summary>
/// <typeparam name="TCRUDRepository">The repository type that provides CRUD operations for entities of type TEntity.</typeparam>
/// <typeparam name="TCreateDto">The type of the Data Transfer Object this service works with to create new entity.</typeparam>
/// <typeparam name="TReadDto">The type of the Data Transfer Object this service works with to read new entity.</typeparam>
/// <typeparam name="TUpdateDto">The type of the Data Transfer Object this service works with to update new entity.</typeparam>
/// <typeparam name="TEntity">The type of the entity this service maps to.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
public interface ICRUDService<TCRUDRepository, TCreateDto, TReadDto, TUpdateDto, TEntity, TId>
where TCRUDRepository : ICRUDRepository<TEntity, TId> where TCreateDto : class where TReadDto : class where TUpdateDto : class where TEntity : class
{
/// <summary>
/// Creates a new entity based on the provided DTO and returns the result wrapped in an IServiceResult,
/// including the created entity on success or an error message on failure.
/// </summary>
/// <param name="createDto">The createDto to create a new entity from.</param>
/// <returns>An IServiceResult containing the id of created entity or an error message.</returns>
Task<IServiceResult<TId>> CreateAsync(TCreateDto createDto);
/// <summary>
/// Retrieves an entity by its identifier and returns its readDTO representation wrapped in an IServiceResult,
/// including the readDTO on success or null and an error message on failure.
/// </summary>
/// <param name="id">The identifier of the entity to retrieve.</param>
/// <returns>An IServiceResult containing the readDTO representing the found entity or null, with an appropriate message.</returns>
Task<IServiceResult<TReadDto>> ReadByIdAsync(TId id);
/// <summary>
/// Retrieves all entities and returns their readDTO representations wrapped in an IServiceResult,
/// including a collection of readDTOs on success or an error message on failure.
/// </summary>
/// <returns>An IServiceResult containing a collection of readDTOs representing all entities or an error message.</returns>
Task<IServiceResult<IEnumerable<TReadDto>>> ReadAllAsync();
/// <summary>
/// Updates an existing entity based on the provided updateDTO and returns the result wrapped in an IServiceMessage,
/// indicating the success or failure of the operation, including the error messages on failure.
/// </summary>
/// <param name="updateDto">The updateDTO with updated values for the entity.</param>
/// <returns>An IServiceMessage indicating the outcome of the update operation, with an appropriate message.</returns>
Task<IServiceMessage> UpdateAsync(TUpdateDto updateDto);
/// <summary>
/// Deletes an entity by its identifier and returns the result wrapped in an IServiceMessage,
/// indicating the success or failure of the operation, including the error messages on failure.
/// </summary>
/// <param name="id">The identifier of the entity to delete.</param>
/// <returns>An IServiceMessage indicating the outcome of the delete operation, with an appropriate message.</returns>
Task<IServiceMessage> DeleteAsyncById(TId id);
/// <summary>
/// Asynchronously checks if an entity with the specified identifier exists within the data store.
/// </summary>
/// <param name="id">The identifier of the entity to check.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains a boolean value indicating whether the entity exists.</returns>
Task<bool> HasEntity(TId id);
/// <summary>
/// Handles exceptions that occur within service actions. This method should log the exception
/// and return an String that contains information about the error, which can then be sent to the client.
/// The implementation should determine the appropriate level of detail to include in the error message
/// based on security and usability considerations.
/// </summary>
/// <param name="ex">The exception that occurred during the controller action.</param>
/// <returns>An string instance representing the outcome of the error handling process.
/// This includes a flag indicating the operation was unsuccessful and any relevant error messages.</returns>
string HandleException(Exception ex);
}
}

View File

@@ -0,0 +1,15 @@
using System.DirectoryServices;
using System.DirectoryServices.AccountManagement;
namespace DigitalData.Core.Contracts.Application
{
public interface IDirectoryService : IServiceBase
{
IServiceResult<IEnumerable<ResultPropertyCollection>> ReadAllGroupAsCollection();
IServiceResult<IEnumerable<Dictionary<string, object>>> ReadGroupByPropertyName(string propName);
IServiceResult<IEnumerable<UserPrincipalDto>> ReadUserByGroup<UserPrincipalDto>(string groupIdentityValue, IdentityType groupIdentityType = IdentityType.Name, bool recursive = true);
}
}

View File

@@ -0,0 +1,71 @@
namespace DigitalData.Core.Contracts.Application
{
/// <summary>
/// Defines the base functionality for a service, including creating service messages and results.
/// </summary>
public interface IServiceBase
{
/// <summary>
/// Creates a service message.
/// </summary>
/// <param name="isSuccess">Indicates if the operation was successful.</param>
/// <param name="messages">The messages associated with the operation.</param>
/// <returns>A service message indicating the outcome of the operation and any associated messages.</returns>
IServiceMessage CreateMessage(bool isSuccess, params string[] messages);
/// <summary>
/// Creates a service result with the specified data.
/// </summary>
/// <typeparam name="T">The type of data the service result will contain.</typeparam>
/// <param name="data">The data for the service result.</param>
/// <param name="isSuccess">Indicates if the operation was successful.</param>
/// <param name="messages">The messages associated with the operation.</param>
/// <returns>A service result containing the data and indicating the outcome of the operation.</returns>
IServiceResult<T> CreateResult<T>(T? data, bool isSuccess, params string[] messages);
/// <summary>
/// Creates a successful service message.
/// </summary>
/// <param name="messages">The success messages.</param>
/// <returns>A successful service message.</returns>
IServiceMessage Successful(params string[] messages);
/// <summary>
/// Creates a failed service message.
/// </summary>
/// <param name="messages">The failure messages.</param>
/// <returns>A failed service message.</returns>
IServiceMessage Failed(params string[] messages);
/// <summary>
/// Creates a successful service result with the specified data.
/// </summary>
/// <typeparam name="T">The type of data the service result will contain.</typeparam>
/// <param name="data">The data to include in the service result.</param>
/// <param name="messages">The success messages.</param>
/// <returns>A successful service result containing the data.</returns>
IServiceResult<T> Successful<T>(T data, params string[] messages);
/// <summary>
/// Creates a failed service result, optionally including data.
/// </summary>
/// <typeparam name="T">The type of data the service result can contain.</typeparam>
/// <param name="data">Optional data to include in the failed service result.</param>
/// <param name="messages">The failure messages.</param>
/// <returns>A failed service result, which may or may not contain data.</returns>
IServiceResult<T> Failed<T>(T? data = default, params string[] messages);
/// <summary>
/// Creates a failed service result without explicitly including data, using only failure messages.
/// </summary>
/// <remarks>
/// This overload is useful when you want to indicate a failure without the need to return any specific data,
/// but still want to provide details about the failure through messages.
/// </remarks>
/// <typeparam name="T">The type of data the service result can contain. The result will contain the default value for this type.</typeparam>
/// <param name="messages">An array of failure messages associated with the operation. These provide detail about why the operation failed.</param>
/// <returns>A failed service result. The data part of the result will be set to the default value for the specified type.</returns>
IServiceResult<T> Failed<T>(params string[] messages);
}
}

View File

@@ -1,21 +1,21 @@
namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
/// <summary>
/// Defines a basic structure for service messages, including a success flag and a collection of messages.
/// This interface is intended to be a base for more specific service result types, offering a way to communicate
/// operation outcomes (success or failure) along with relevant messages.
/// </summary>
public interface IServiceMessage
{
/// <summary>
/// Gets or sets a value indicating whether the service operation was successful.
/// </summary>
bool IsSuccess { get; set; }
/// <summary>
/// Gets or sets a collection of messages associated with the service operation. These messages can be error descriptions,
/// success notifications, or other relevant information related to the operation's outcome.
/// </summary>
List<string> Messages { get; set; }
}
namespace DigitalData.Core.Contracts.Application
{
/// <summary>
/// Defines a basic structure for service messages, including a success flag and a collection of messages.
/// This interface is intended to be a base for more specific service result types, offering a way to communicate
/// operation outcomes (success or failure) along with relevant messages.
/// </summary>
public interface IServiceMessage
{
/// <summary>
/// Gets or sets a value indicating whether the service operation was successful.
/// </summary>
bool IsSuccess { get; set; }
/// <summary>
/// Gets or sets a collection of messages associated with the service operation. These messages can be error descriptions,
/// success notifications, or other relevant information related to the operation's outcome.
/// </summary>
List<string> Messages { get; set; }
}
}

View File

@@ -1,19 +1,19 @@
namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
/// <summary>
/// Represents the outcome of a service operation, extending IServiceMessage with the addition of a data payload.
/// This interface is generic, allowing for the specification of the type of data returned by the service operation.
/// It is used to communicate not just the success or failure of an operation, but also to return any relevant data
/// along with the operation's outcome.
/// </summary>
/// <typeparam name="T">The type of the data associated with the service operation's outcome. This could be a model,
/// a collection of models, or any other type relevant to the operation.</typeparam>
public interface IServiceResult<T> : IServiceMessage
{
/// <summary>
/// Gets or sets the data resulting from the service operation. This property is nullable to accommodate operations
/// that might not return data upon failure.
/// </summary>
T? Data { get; set; }
}
namespace DigitalData.Core.Contracts.Application
{
/// <summary>
/// Represents the outcome of a service operation, extending IServiceMessage with the addition of a data payload.
/// This interface is generic, allowing for the specification of the type of data returned by the service operation.
/// It is used to communicate not just the success or failure of an operation, but also to return any relevant data
/// along with the operation's outcome.
/// </summary>
/// <typeparam name="T">The type of the data associated with the service operation's outcome. This could be a model,
/// a collection of models, or any other type relevant to the operation.</typeparam>
public interface IServiceResult<T> : IServiceMessage
{
/// <summary>
/// Gets or sets the data resulting from the service operation. This property is nullable to accommodate operations
/// that might not return data upon failure.
/// </summary>
T? Data { get; set; }
}
}

View File

@@ -1,28 +0,0 @@
using System.DirectoryServices;
namespace DigitalData.Core.Contracts.Authentication.Services
{
/// <summary>
/// Defines the contract for a service that interacts with Active Directory (AD) to search and read AD entries into objects of type <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of the objects to which AD entries will be mapped.</typeparam>
public interface IADService<T> where T : new()
{
/// <summary>
/// Performs a search in Active Directory and returns all matching entries.
/// </summary>
/// <returns>A collection of search results containing all matching Active Directory entries.</returns>
public SearchResultCollection SearchAll();
/// <summary>
/// Reads all search results and maps them to a collection of objects of type <typeparamref name="T"/>.
/// </summary>
/// <returns>An enumerable collection of objects of type <typeparamref name="T"/>, each representing an Active Directory entry.</returns>
public IEnumerable<T> ReadAll();
/// <summary>
/// Gets the <see cref="DirectorySearcher"/> instance used for executing searches against Active Directory.
/// </summary>
public DirectorySearcher Searcher { get; }
}
}

View File

@@ -1,19 +0,0 @@
namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
public interface IServiceReplier
{
IServiceMessage CreateMessage(bool isSuccess, params string[] messages);
IServiceResult<T> CreateResult<T>(T? data, bool isSuccess = true, params string[] messages);
IServiceMessage Successful() => CreateMessage(true);
IServiceMessage Failed(params string[] messages) => CreateMessage(false, messages);
IServiceResult<T> Successful<T>(T data) => CreateResult(data);
IServiceResult<T> Failed<T>(T? data, params string[] messages) => CreateResult(data, false, messages);
IServiceResult<T> FailedResult<T>(params string[] messages) => Failed<T>(default, messages);
}
}

View File

@@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="System.DirectoryServices" Version="7.0.1" />
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="7.0.1" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,11 @@
using System.DirectoryServices;
namespace DigitalData.Core.Contracts.Infrastructure
{
public interface IADDataAccessor
{
SearchResultCollection ReadAll();
SearchResult? ReadOne();
}
}

View File

@@ -1,44 +1,44 @@
namespace DigitalData.Core.Contracts.CleanArchitecture.Infrastructure
{
/// <summary>
/// Defines the contract for CRUD operations on a repository for entities of type TEntity.
/// </summary>
/// <typeparam name="TEntity">The type of the entity this repository works with.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
public interface ICRUDRepository<TEntity, TId> where TEntity : class
{
/// <summary>
/// Adds a new entity to the repository.
/// </summary>
/// <param name="entity">The entity to add.</param>
/// <returns>The added entity, or null if the entity cannot be added.</returns>
Task<TEntity?> CreateAsync(TEntity entity);
/// <summary>
/// Retrieves an entity by its identifier from the repository.
/// </summary>
/// <param name="id">The identifier of the entity to retrieve.</param>
/// <returns>The entity found, or null if no entity is found.</returns>
Task<TEntity?> ReadByIdAsync(TId id);
/// <summary>
/// Retrieves all entities from the repository.
/// </summary>
/// <returns>A collection of all entities.</returns>
Task<IEnumerable<TEntity>> ReadAllAsync();
/// <summary>
/// Updates an existing entity in the repository.
/// </summary>
/// <param name="entity">The entity to update.</param>
/// <returns>The updated entity.</returns>
Task<bool> UpdateAsync(TEntity entity);
/// <summary>
/// Deletes an entity from the repository.
/// </summary>
/// <param name="entity">The entity to delete.</param>
/// <returns>If entity is deleted, return true othwerwise return false.</returns>
Task<bool> DeleteAsync(TEntity entity);
}
namespace DigitalData.Core.Contracts.Infrastructure
{
/// <summary>
/// Defines the contract for CRUD operations on a repository for entities of type TEntity.
/// </summary>
/// <typeparam name="TEntity">The type of the entity this repository works with.</typeparam>
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
public interface ICRUDRepository<TEntity, TId> where TEntity : class
{
/// <summary>
/// Adds a new entity to the repository.
/// </summary>
/// <param name="entity">The entity to add.</param>
/// <returns>The added entity, or null if the entity cannot be added.</returns>
Task<TEntity?> CreateAsync(TEntity entity);
/// <summary>
/// Retrieves an entity by its identifier from the repository.
/// </summary>
/// <param name="id">The identifier of the entity to retrieve.</param>
/// <returns>The entity found, or null if no entity is found.</returns>
Task<TEntity?> ReadByIdAsync(TId id);
/// <summary>
/// Retrieves all entities from the repository.
/// </summary>
/// <returns>A collection of all entities.</returns>
Task<IEnumerable<TEntity>> ReadAllAsync();
/// <summary>
/// Updates an existing entity in the repository.
/// </summary>
/// <param name="entity">The entity to update.</param>
/// <returns>The updated entity.</returns>
Task<bool> UpdateAsync(TEntity entity);
/// <summary>
/// Deletes an entity from the repository.
/// </summary>
/// <param name="entity">The entity to delete.</param>
/// <returns>If entity is deleted, return true othwerwise return false.</returns>
Task<bool> DeleteAsync(TEntity entity);
}
}

View File

@@ -0,0 +1,9 @@
using System.DirectoryServices;
namespace DigitalData.Core.Contracts.Infrastructure
{
public interface ISearcherProvider<ADDataAccessor>
{
public Func<DirectorySearcher> Provide { get; }
}
}

View File

@@ -8,7 +8,8 @@
".NETCoreApp,Version=v7.0": {
"DigitalData.Core.Contracts/1.0.0": {
"dependencies": {
"System.DirectoryServices": "7.0.1"
"System.DirectoryServices": "7.0.1",
"System.DirectoryServices.AccountManagement": "7.0.1"
},
"runtime": {
"DigitalData.Core.Contracts.dll": {}
@@ -30,6 +31,41 @@
}
}
},
"System.Configuration.ConfigurationManager/7.0.0": {
"dependencies": {
"System.Diagnostics.EventLog": "7.0.0",
"System.Security.Cryptography.ProtectedData": "7.0.0",
"System.Security.Permissions": "7.0.0"
},
"runtime": {
"lib/net7.0/System.Configuration.ConfigurationManager.dll": {
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
}
},
"System.Diagnostics.EventLog/7.0.0": {
"runtime": {
"lib/net7.0/System.Diagnostics.EventLog.dll": {
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.Messages.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "7.0.0.0",
"fileVersion": "0.0.0.0"
},
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
}
},
"System.DirectoryServices/7.0.1": {
"dependencies": {
"System.Security.Permissions": "7.0.0"
@@ -49,6 +85,55 @@
}
}
},
"System.DirectoryServices.AccountManagement/7.0.1": {
"dependencies": {
"System.Configuration.ConfigurationManager": "7.0.0",
"System.DirectoryServices": "7.0.1",
"System.DirectoryServices.Protocols": "7.0.1"
},
"runtime": {
"lib/net7.0/System.DirectoryServices.AccountManagement.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "7.0.1123.42427"
}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.DirectoryServices.AccountManagement.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "7.0.1123.42427"
}
}
},
"System.DirectoryServices.Protocols/7.0.1": {
"runtime": {
"lib/net7.0/System.DirectoryServices.Protocols.dll": {
"assemblyVersion": "7.0.0.1",
"fileVersion": "7.0.723.27404"
}
},
"runtimeTargets": {
"runtimes/linux/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"rid": "linux",
"assetType": "runtime",
"assemblyVersion": "7.0.0.1",
"fileVersion": "7.0.723.27404"
},
"runtimes/osx/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"rid": "osx",
"assetType": "runtime",
"assemblyVersion": "7.0.0.1",
"fileVersion": "7.0.723.27404"
},
"runtimes/win/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "7.0.0.1",
"fileVersion": "7.0.723.27404"
}
}
},
"System.Drawing.Common/7.0.0": {
"dependencies": {
"Microsoft.Win32.SystemEvents": "7.0.0"
@@ -68,6 +153,22 @@
}
}
},
"System.Security.Cryptography.ProtectedData/7.0.0": {
"runtime": {
"lib/net7.0/System.Security.Cryptography.ProtectedData.dll": {
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.Security.Cryptography.ProtectedData.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
}
},
"System.Security.Permissions/7.0.0": {
"dependencies": {
"System.Windows.Extensions": "7.0.0"
@@ -113,6 +214,20 @@
"path": "microsoft.win32.systemevents/7.0.0",
"hashPath": "microsoft.win32.systemevents.7.0.0.nupkg.sha512"
},
"System.Configuration.ConfigurationManager/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-WvRUdlL1lB0dTRZSs5XcQOd5q9MYNk90GkbmRmiCvRHThWiojkpGqWdmEDJdXyHbxG/BhE5hmVbMfRLXW9FJVA==",
"path": "system.configuration.configurationmanager/7.0.0",
"hashPath": "system.configuration.configurationmanager.7.0.0.nupkg.sha512"
},
"System.Diagnostics.EventLog/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-eUDP47obqQm3SFJfP6z+Fx2nJ4KKTQbXB4Q9Uesnzw9SbYdhjyoGXuvDn/gEmFY6N5Z3bFFbpAQGA7m6hrYJCw==",
"path": "system.diagnostics.eventlog/7.0.0",
"hashPath": "system.diagnostics.eventlog.7.0.0.nupkg.sha512"
},
"System.DirectoryServices/7.0.1": {
"type": "package",
"serviceable": true,
@@ -120,6 +235,20 @@
"path": "system.directoryservices/7.0.1",
"hashPath": "system.directoryservices.7.0.1.nupkg.sha512"
},
"System.DirectoryServices.AccountManagement/7.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-UNytHYwA5IF55WQhashsMG57ize83JUGJxD8YJlOyO9ZlMTOD4Nt7y+A6mvmrU/swDoYWaVL+TNwE6hk9lyvbA==",
"path": "system.directoryservices.accountmanagement/7.0.1",
"hashPath": "system.directoryservices.accountmanagement.7.0.1.nupkg.sha512"
},
"System.DirectoryServices.Protocols/7.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-t9hsL+UYRzNs30pnT2Tdx6ngX8McFUjru0a0ekNgu/YXfkXN+dx5OvSEv0/p7H2q3pdJLH7TJPWX7e55J8QB9A==",
"path": "system.directoryservices.protocols/7.0.1",
"hashPath": "system.directoryservices.protocols.7.0.1.nupkg.sha512"
},
"System.Drawing.Common/7.0.0": {
"type": "package",
"serviceable": true,
@@ -127,6 +256,13 @@
"path": "system.drawing.common/7.0.0",
"hashPath": "system.drawing.common.7.0.0.nupkg.sha512"
},
"System.Security.Cryptography.ProtectedData/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-xSPiLNlHT6wAHtugASbKAJwV5GVqQK351crnILAucUioFqqieDN79evO1rku1ckt/GfjIn+b17UaSskoY03JuA==",
"path": "system.security.cryptography.protecteddata/7.0.0",
"hashPath": "system.security.cryptography.protecteddata.7.0.0.nupkg.sha512"
},
"System.Security.Permissions/7.0.0": {
"type": "package",
"serviceable": true,

View File

@@ -1 +1 @@
a9db3a54a7e18da1629a72e8f69d5767988bd276
177e5eec9a1e988286024d21034b093c87f5ba06

View File

@@ -54,6 +54,10 @@
"System.DirectoryServices": {
"target": "Package",
"version": "[7.0.1, )"
},
"System.DirectoryServices.AccountManagement": {
"target": "Package",
"version": "[7.0.1, )"
}
},
"imports": [

View File

@@ -24,6 +24,53 @@
}
}
},
"System.Configuration.ConfigurationManager/7.0.0": {
"type": "package",
"dependencies": {
"System.Diagnostics.EventLog": "7.0.0",
"System.Security.Cryptography.ProtectedData": "7.0.0",
"System.Security.Permissions": "7.0.0"
},
"compile": {
"lib/net7.0/System.Configuration.ConfigurationManager.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net7.0/System.Configuration.ConfigurationManager.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
}
},
"System.Diagnostics.EventLog/7.0.0": {
"type": "package",
"compile": {
"lib/net7.0/System.Diagnostics.EventLog.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net7.0/System.Diagnostics.EventLog.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.Messages.dll": {
"assetType": "runtime",
"rid": "win"
},
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.DirectoryServices/7.0.1": {
"type": "package",
"dependencies": {
@@ -49,6 +96,63 @@
}
}
},
"System.DirectoryServices.AccountManagement/7.0.1": {
"type": "package",
"dependencies": {
"System.Configuration.ConfigurationManager": "7.0.0",
"System.DirectoryServices": "7.0.1",
"System.DirectoryServices.Protocols": "7.0.1"
},
"compile": {
"lib/net7.0/System.DirectoryServices.AccountManagement.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net7.0/System.DirectoryServices.AccountManagement.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.DirectoryServices.AccountManagement.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.DirectoryServices.Protocols/7.0.1": {
"type": "package",
"compile": {
"lib/net7.0/System.DirectoryServices.Protocols.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net7.0/System.DirectoryServices.Protocols.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
},
"runtimeTargets": {
"runtimes/linux/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"assetType": "runtime",
"rid": "linux"
},
"runtimes/osx/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"assetType": "runtime",
"rid": "osx"
},
"runtimes/win/lib/net7.0/System.DirectoryServices.Protocols.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Drawing.Common/7.0.0": {
"type": "package",
"dependencies": {
@@ -74,6 +178,28 @@
}
}
},
"System.Security.Cryptography.ProtectedData/7.0.0": {
"type": "package",
"compile": {
"lib/net7.0/System.Security.Cryptography.ProtectedData.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net7.0/System.Security.Cryptography.ProtectedData.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net7.0/System.Security.Cryptography.ProtectedData.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Security.Permissions/7.0.0": {
"type": "package",
"dependencies": {
@@ -149,6 +275,66 @@
"useSharedDesignerContext.txt"
]
},
"System.Configuration.ConfigurationManager/7.0.0": {
"sha512": "WvRUdlL1lB0dTRZSs5XcQOd5q9MYNk90GkbmRmiCvRHThWiojkpGqWdmEDJdXyHbxG/BhE5hmVbMfRLXW9FJVA==",
"type": "package",
"path": "system.configuration.configurationmanager/7.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Configuration.ConfigurationManager.targets",
"buildTransitive/net462/_._",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/System.Configuration.ConfigurationManager.targets",
"lib/net462/System.Configuration.ConfigurationManager.dll",
"lib/net462/System.Configuration.ConfigurationManager.xml",
"lib/net6.0/System.Configuration.ConfigurationManager.dll",
"lib/net6.0/System.Configuration.ConfigurationManager.xml",
"lib/net7.0/System.Configuration.ConfigurationManager.dll",
"lib/net7.0/System.Configuration.ConfigurationManager.xml",
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll",
"lib/netstandard2.0/System.Configuration.ConfigurationManager.xml",
"system.configuration.configurationmanager.7.0.0.nupkg.sha512",
"system.configuration.configurationmanager.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Diagnostics.EventLog/7.0.0": {
"sha512": "eUDP47obqQm3SFJfP6z+Fx2nJ4KKTQbXB4Q9Uesnzw9SbYdhjyoGXuvDn/gEmFY6N5Z3bFFbpAQGA7m6hrYJCw==",
"type": "package",
"path": "system.diagnostics.eventlog/7.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Diagnostics.EventLog.targets",
"buildTransitive/net462/_._",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/System.Diagnostics.EventLog.targets",
"lib/net462/System.Diagnostics.EventLog.dll",
"lib/net462/System.Diagnostics.EventLog.xml",
"lib/net6.0/System.Diagnostics.EventLog.dll",
"lib/net6.0/System.Diagnostics.EventLog.xml",
"lib/net7.0/System.Diagnostics.EventLog.dll",
"lib/net7.0/System.Diagnostics.EventLog.xml",
"lib/netstandard2.0/System.Diagnostics.EventLog.dll",
"lib/netstandard2.0/System.Diagnostics.EventLog.xml",
"runtimes/win/lib/net6.0/System.Diagnostics.EventLog.Messages.dll",
"runtimes/win/lib/net6.0/System.Diagnostics.EventLog.dll",
"runtimes/win/lib/net6.0/System.Diagnostics.EventLog.xml",
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.Messages.dll",
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.dll",
"runtimes/win/lib/net7.0/System.Diagnostics.EventLog.xml",
"system.diagnostics.eventlog.7.0.0.nupkg.sha512",
"system.diagnostics.eventlog.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.DirectoryServices/7.0.1": {
"sha512": "Z4FVdUJEVXbf7/f/hU6cFZDtxN5ozUVKJMzXoHmC+GCeTcqzlxqmWtxurejxG3K+kZ6H0UKwNshoK1CYnmJ1sg==",
"type": "package",
@@ -177,6 +363,70 @@
"useSharedDesignerContext.txt"
]
},
"System.DirectoryServices.AccountManagement/7.0.1": {
"sha512": "UNytHYwA5IF55WQhashsMG57ize83JUGJxD8YJlOyO9ZlMTOD4Nt7y+A6mvmrU/swDoYWaVL+TNwE6hk9lyvbA==",
"type": "package",
"path": "system.directoryservices.accountmanagement/7.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/System.DirectoryServices.AccountManagement.targets",
"lib/net462/_._",
"lib/net6.0/System.DirectoryServices.AccountManagement.dll",
"lib/net6.0/System.DirectoryServices.AccountManagement.xml",
"lib/net7.0/System.DirectoryServices.AccountManagement.dll",
"lib/net7.0/System.DirectoryServices.AccountManagement.xml",
"lib/netstandard2.0/System.DirectoryServices.AccountManagement.dll",
"lib/netstandard2.0/System.DirectoryServices.AccountManagement.xml",
"runtimes/win/lib/net6.0/System.DirectoryServices.AccountManagement.dll",
"runtimes/win/lib/net6.0/System.DirectoryServices.AccountManagement.xml",
"runtimes/win/lib/net7.0/System.DirectoryServices.AccountManagement.dll",
"runtimes/win/lib/net7.0/System.DirectoryServices.AccountManagement.xml",
"system.directoryservices.accountmanagement.7.0.1.nupkg.sha512",
"system.directoryservices.accountmanagement.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.DirectoryServices.Protocols/7.0.1": {
"sha512": "t9hsL+UYRzNs30pnT2Tdx6ngX8McFUjru0a0ekNgu/YXfkXN+dx5OvSEv0/p7H2q3pdJLH7TJPWX7e55J8QB9A==",
"type": "package",
"path": "system.directoryservices.protocols/7.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/System.DirectoryServices.Protocols.targets",
"lib/net462/_._",
"lib/net6.0/System.DirectoryServices.Protocols.dll",
"lib/net6.0/System.DirectoryServices.Protocols.xml",
"lib/net7.0/System.DirectoryServices.Protocols.dll",
"lib/net7.0/System.DirectoryServices.Protocols.xml",
"lib/netstandard2.0/System.DirectoryServices.Protocols.dll",
"lib/netstandard2.0/System.DirectoryServices.Protocols.xml",
"runtimes/linux/lib/net6.0/System.DirectoryServices.Protocols.dll",
"runtimes/linux/lib/net6.0/System.DirectoryServices.Protocols.xml",
"runtimes/linux/lib/net7.0/System.DirectoryServices.Protocols.dll",
"runtimes/linux/lib/net7.0/System.DirectoryServices.Protocols.xml",
"runtimes/osx/lib/net6.0/System.DirectoryServices.Protocols.dll",
"runtimes/osx/lib/net6.0/System.DirectoryServices.Protocols.xml",
"runtimes/osx/lib/net7.0/System.DirectoryServices.Protocols.dll",
"runtimes/osx/lib/net7.0/System.DirectoryServices.Protocols.xml",
"runtimes/win/lib/net6.0/System.DirectoryServices.Protocols.dll",
"runtimes/win/lib/net6.0/System.DirectoryServices.Protocols.xml",
"runtimes/win/lib/net7.0/System.DirectoryServices.Protocols.dll",
"runtimes/win/lib/net7.0/System.DirectoryServices.Protocols.xml",
"system.directoryservices.protocols.7.0.1.nupkg.sha512",
"system.directoryservices.protocols.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Drawing.Common/7.0.0": {
"sha512": "KIX+oBU38pxkKPxvLcLfIkOV5Ien8ReN78wro7OF5/erwcmortzeFx+iBswlh2Vz6gVne0khocQudGwaO1Ey6A==",
"type": "package",
@@ -214,6 +464,43 @@
"useSharedDesignerContext.txt"
]
},
"System.Security.Cryptography.ProtectedData/7.0.0": {
"sha512": "xSPiLNlHT6wAHtugASbKAJwV5GVqQK351crnILAucUioFqqieDN79evO1rku1ckt/GfjIn+b17UaSskoY03JuA==",
"type": "package",
"path": "system.security.cryptography.protecteddata/7.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Security.Cryptography.ProtectedData.targets",
"buildTransitive/net462/_._",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/System.Security.Cryptography.ProtectedData.targets",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net462/System.Security.Cryptography.ProtectedData.dll",
"lib/net462/System.Security.Cryptography.ProtectedData.xml",
"lib/net6.0/System.Security.Cryptography.ProtectedData.dll",
"lib/net6.0/System.Security.Cryptography.ProtectedData.xml",
"lib/net7.0/System.Security.Cryptography.ProtectedData.dll",
"lib/net7.0/System.Security.Cryptography.ProtectedData.xml",
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll",
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.xml",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"runtimes/win/lib/net6.0/System.Security.Cryptography.ProtectedData.dll",
"runtimes/win/lib/net6.0/System.Security.Cryptography.ProtectedData.xml",
"runtimes/win/lib/net7.0/System.Security.Cryptography.ProtectedData.dll",
"runtimes/win/lib/net7.0/System.Security.Cryptography.ProtectedData.xml",
"system.security.cryptography.protecteddata.7.0.0.nupkg.sha512",
"system.security.cryptography.protecteddata.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Security.Permissions/7.0.0": {
"sha512": "Vmp0iRmCEno9BWiskOW5pxJ3d9n+jUqKxvX4GhLwFhnQaySZmBN2FuC0N5gjFHgyFMUjC5sfIJ8KZfoJwkcMmA==",
"type": "package",
@@ -267,7 +554,8 @@
},
"projectFileDependencyGroups": {
"net7.0": [
"System.DirectoryServices >= 7.0.1"
"System.DirectoryServices >= 7.0.1",
"System.DirectoryServices.AccountManagement >= 7.0.1"
]
},
"packageFolders": {
@@ -326,6 +614,10 @@
"System.DirectoryServices": {
"target": "Package",
"version": "[7.0.1, )"
},
"System.DirectoryServices.AccountManagement": {
"target": "Package",
"version": "[7.0.1, )"
}
},
"imports": [

View File

@@ -1,12 +1,17 @@
{
"version": 2,
"dgSpecHash": "LhXjWCBkD7ZqHljLXpoxQD80daqn64odiqo6JBZqWjR5hUon3ccAg54C7m68NXLJomkN+h/xY/DHLYQWOPd/bg==",
"dgSpecHash": "n/VX1Xn5VhTFNRyiaWJD43vkQgiZNnXV2SWQIXmgEA0h8rwmx/BAGV5uVyzUtVJPbxAGNovVpTVK7NfUSMnvjQ==",
"success": true,
"projectFilePath": "E:\\TekH\\Visual Studio\\DDWeb\\DigitalData.Core\\DigitalData.Core.Contracts\\DigitalData.Core.Contracts.csproj",
"expectedPackageFiles": [
"C:\\Users\\tekh\\.nuget\\packages\\microsoft.win32.systemevents\\7.0.0\\microsoft.win32.systemevents.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.configuration.configurationmanager\\7.0.0\\system.configuration.configurationmanager.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.diagnostics.eventlog\\7.0.0\\system.diagnostics.eventlog.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.directoryservices\\7.0.1\\system.directoryservices.7.0.1.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.directoryservices.accountmanagement\\7.0.1\\system.directoryservices.accountmanagement.7.0.1.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.directoryservices.protocols\\7.0.1\\system.directoryservices.protocols.7.0.1.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.drawing.common\\7.0.0\\system.drawing.common.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.security.cryptography.protecteddata\\7.0.0\\system.security.cryptography.protecteddata.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.security.permissions\\7.0.0\\system.security.permissions.7.0.0.nupkg.sha512",
"C:\\Users\\tekh\\.nuget\\packages\\system.windows.extensions\\7.0.0\\system.windows.extensions.7.0.0.nupkg.sha512"
],