Found 21 packages
West Wind Web and AJAX Utilities provide a host of Web related utility functions and objects related to path management, script loading, script and page compression, UserState management, Cookie management and more. There's also a self-contained, light weight CallbackHandler that allows you to embedded HTTP APIs. Finally there's also a general purpose WebUtils class that provides a host of pathing, reference and other support functions. Also includes the ww.jquery.js client library that provides many, small jQuery plug-ins.
Core User Identity is a .NET Class library and Package ([Package page](https://www.nuget.org/packages/MLiberary/)) that helps in the implementation of ASP .NET Identity To put it simply, you can use Core User Identity to Implement: - Helper service to handle login, register, update, delete, roles and other functionalities - JWT tokens authentication, JWT tokens reader - Controller attributes for authentication with roles - OAuth2 Login with Facebook or Google - User Roles management Service to add, remove or update user Roles - Sending Email verification with VerficationEmailSender Package
A component to manage users and user data via a repository class. It can handle complex property structures and is also able to divide user properties in different contexts. The component has a default implementation for SQL Server (in nJupiter.DataAccess.Users.Sql) but can also be tied to an LDAP (by using the IUserRepository implementation in nJupiter.DataAccess.Users.DirectoryService) or you can also bind it to any other data source by implementing your own IUserRepository. The assembly also contain implementations for ProfileProvider and MembershipProvider implemmentations, for example the HybridMembershipProvider that makes it possible to wrap another MembershipProvider with a database user.
The helper class and interface for getting information about an authorized user. Included in the general set of auxiliary libraries: Alva.ServiceKit.*
The helper class and interface for getting information about an authorized user. Included in the general set of auxiliary libraries: Alva.ServiceKit.*
Supported Platforms: • NETFramework Create a DICOM Service Class User (SCU) solution that can store, query, and retrieve from a standard DICOM SCP. Automatically handle DICOM Connection, Association, and DIMSE Services, including C-ECHO, C-FIND, C-MOVE, C-STORE, and more. Patient Updating is also supported through the N-ACTION DIMSE Service. This is just a small part of a large technology offering called LEADTOOLS, which offers complete DICOM data set, directory (DICOMDIR), secure communication, medical-related image processing, 2D and 3D viewers, and video playback technology. LEADTOOLS Medical toolkits are indispensable if you are working on applications for medical and other life sciences industries. To see all that LEADTOOLS has to offer, go to https://www.leadtools.com Use the following link to register for a LEADTOOLS license file that is required to use this NuGet. Additionally, the link provides access to the LEADTOOLS Installer. The Installer includes 100’s of demo applications with source code to jump start your development: https://bit.ly/LEADTOOLS_NUGET
Generic Services is a .NET class library to help build a service layer, i.e. a layer that acts as a facard/adapter between your data layers containing an Entity Framework database and your User Interface or HTTP service.
Class library for communication using the XMPP protocol. Library contains both client-to-server and component-to-server communication classes. Classes can be extended freely by external modules.
Class library for communication using the XMPP protocol. Library contains both client-to-server and component-to-server communication classes. Classes can be extended freely by external modules. XMPP Extensions supported by the library by default include: XEP-0004: Data Forms XEP-0030: Service Discovery XEP-0047: In-band Bytestreams XEP-0049: Private XML Storage XEP-0055: Jabber Search XEP-0059: Result Set Management XEP-0068: Field Standardization for Data Forms XEP-0077: In-band Registration XEP-0092: Software Version XEP-0114: Jabber Component Protocol XEP-0115: Entity Capabilities XEP-0122: Data Forms Validation XEP-0128: Service Discovery Extensions XEP-0141: Data Forms Layout XEP-0172: User Nickname XEP-0184: Message Delivery Receipts XEP-0191: Blocking Command XEP-0199: XMPP Ping XEP-0221: Data Forms Media Element XEP-0231: Bits of Binary XEP-0331: Data Forms - Color Field Types XEP-0336: Data Forms - Dynamic Forms XEP-0348: Signing Forms XEP-0363: HTTP File Upload XEP-0377: Spam Reporting Support for other extensions is provided by separate nuget packages. See: https://waher.se/IoTGateway/Libraries.md#networking
Allows commands to have services or dependencies provided by the CommandProcessor. For example a database command might look like this public class GetUserCommand : DbCommandBase<Use> { //Constructor only takes the arguments necessary to run the command public GetUserCommand(int userId) { this.UserId = userId; } public int UserId {get;set;} public override User Execute(IDbConnection db) { return db.Query<User>("Select * from User where Id = @UserId", new { UserId}, this.Transaction) .FirstOrDefault(); } } The Command executor will then provide the neccessary DbProviderFactory to the command before execution. (nb: The DbCommandBase is creating the actual connection) Commands can all execute other commands, e.g. this.Execute(new SendNewUserEmailCommand("Johnny", "John@doe.com")); It is then the responsiblity of the Command Executor to provide the necessary email sending service. More info can be found here. http://github.com/markkemper1/Commando
REST-service component is a server-side framework that allows easy creation and working with HTTP and REST services within any ASP.NET application, including capability to work with backend server-side .NET code via REST or HTTP services from client-side javascript or other types of client code. Once a REST-service is defined it can be consumed via regular URL, or using client-side javascript call that resembles the standard C# style function call that is expected to be used within server-side code calling the same method. The REST-service can return any type of data, such as string, byte array, reference to a file that should be sent to a client as a call response, etc. In addition HTML templates functionality can be utilized by building an ascx file template (like regular web user controls) and data model that REST-service method is supposed to return – the framework will process ASCX template by applying data model to it and returning its result to the client. The REST-service framework also provides control over security, and has built-in configuration that is 100% controlled by a developer, including ability to use class alias instead of real class to hide the internal namespaces and classes’ structure used by the server code backend. Disclaimer: The main purpose of building this framework was to allow the creation of HTTP or REST services in such a way that is easy to use, easy to setup, to not be limited by returned type of data, and making sure that the internal application code can be reused for service purposes. Although a number of measures were taken, it was not the goal to achieve 100% compatibility with the RESTful architecture.
A framework for the serialization of the popular JQuery DataTables Plug-in. There are two small libraries, CubedElement.DataTable.Contracts and CubedElement.DataTable.Model, and when building this the goal was not only to make it user friendly, but to make it n-tiered and IoC friendly too!
Package contains methods to send email using SMTP and third party email providers according to users preference. It is a simple easy to use helper class containing methods to send email using SMTP and third party email service providers i.e. Sendgrid, AWS SES.
Part of the service modular system standart . - To use it just call AdapterModule. Ex: ~ PresentedType presented = AdapterModule.Adapt<PresentedType>(object); ~ - In the presented type you must tag the properties with the AdapterMarkerAttribute passing the equivalent property name in the object thats beign adapted to the AdapterMarkerAttribute constructor. Ex: public class User { public string Name; } public class PresentedUser { [AdapterMarker("Name")] public string PresentedName; } - You can optionally tell the adapter to use a custom method to adapt a property, to do that you must create a property in the presented object type called 'Adapters', the type must be * List<AdapterMethod<object, object>>. Use the optional second argument from the Marker constructor to tell the Adapter to use the custom method instead. The easiest way to do that is to extend the presented type class from the Adaptable class, and add the custom adapter method. The AdapterMethod object must contain the property taget name and a method from type Func<object, object>. Ex: public class User { public string Name; } public class PresentedUser : Adaptable { [AdapterMarker("Name", true)] public string PresentedName; public PresentedUser() { Adapters.Add( new AdapterMethod(){ PropertyName = "Name", Method = (object property) => { return "Some code here..."; } } ); } }
It is a library where you can log all the movements that occur in your application.Specific Logging. Create Index and Log Your Model. Catches Database Changing (Update,Delete) and Logs with Current User Id. Logs Selected Endpoints with Ip Address, Query or Body Params and Current User Id. Catches All Exception in Project and Logs with Exception Message, Status Code and Current User Id. Elastic Search Management Service Class. Index Management, Alias Management, Search Logs.
调用方法: using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.IO; public static IHostBuilder CreateHostBuilder(string[] args) { return Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => { webBuilder .UseConfiguration( new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) //端口修改办法 // 1 appSetting.json 末尾加一行 "urls": "https://*:10086" 端口自己写 // 2 通过命令行 --urls=http://*:10086 .AddCommandLine(args) .Build()) //启用http1 和 http2 .EnableHttp1AndHttp2() //以下两段代码可以放到项目的Startup.cs中,本处方便说明 //组件(服务)时刻 .ConfigureServices((serviceProvider) => { //加入Mvc组件 serviceProvider.AddControllers(); //加入Symbol Cloud Server 组件 serviceProvider.AddSymbolCloudServer(); }) //启用时刻 .Configure((context, app) => { //启用调试页面 if (context.HostingEnvironment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } //启用路由,Mvc必须使用 app.UseRouting(); //启用Symbol Cloud Server app.UseSymbolCloudServer(); //启用Symbol Cloud Server API列表页面 // true 表示 监听 / 并跳转到 /apiList.do app.UseSymbolCloudApiList(true); //endpoint映射 app.UseEndpoints(endpoints => { //首页,如果ApiList为false就可以打开它 //endpoints.MapGet("/", async context => { // await context.Response.WriteAsync("Hello World!"); //}); //Mvc路由规则 endpoints.MapControllerRoute(name: "default", pattern: "{controller}/{action}/{id?}"); }); }); }); } 请在最终运行的项目中配置服务端参数,文件名规则为:app_data/*.cloud.server.config.json,以下为参考配置: { //协议配置,可以是单个对象,或数组 //可以不填写 "protocol": [{ "name": "default",//名称,可选 "data": {//数据,不填写默认为json "type": "json", //类型:json,xml,treePackage,soap,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly }, "encrypt": {//加密,不填写默认不加密 "type": "none",//类型:none,AESStatic,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly }, "media": {//传输介质,不填写默认为original "type": "original",//类型:original,base64,hex,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly } }], //服务器 "server": { "name": "my.cloud",//名称,可选 "host": "localhost",//主机:域名或IP,默认localhost "port": 1,//端口 "timeout": 120,//超时:秒,默认120,可选 "debug": true,//调试模式:默认不启用,可选 "settings": { } //参数设置:可选 }, //数据库,不需要可以不写 "database": { //连接参数 //通用参数:主机、端口、数据库名称、账号、密码 //其它参数可以写在里面,取决于提供者是否支持 "connection": { "host": "localhost", //主机,可以包括端口,经test.com:1433 "port":11433, //可以不写,表示默认 "name": "test", //数据库名称 "account": "test", //登录账号 "password": "123456" //登录密码 } }, //客户端 "client": [ { "name": "my.manager",//名称,可选,并没有影响 "enable": true,//状态 "authCode": "203AFBA5816078A7BAF822C04687B3D3",//授权码 "permissions": [ //权限列表,可选 ], //外部配置,可以不写 //可以为单个字符串,或数组 //外部配置可重写 authCode //外部配置可追加(自动去重) permissions //路径相对于配置文件 //支持变量 {name} {server.name} "config": [ "module.*.manager.client.json", "{server.name}.manager.client.json" ] } ] } 请在api项目中配置权限信息,命名规则以服务端配置config规则定义为准,以下为示例配置: 文件名:module.setting.manager.client.json 存储位置:app_data { "permissions": [ //系统设置.Begin "my.read.setting", "my.write.setting" //系统设置.End ] }
4.6.14 - Prevent 401 unauthorized errors when the userId claim is missing(for client tokens). 4.6.13 - Added an optional OnTokenValidated step to JWT validation that checks the TokenVersion stored in Redis, ensuring tokens issued before a password change are rejected with 401. 4.6.12 - Undo the change made in 4.6.11 regarding the vulnerable packages for security issues. 4.6.11 - Updated vulnerable packages for security issues 4.6.10 - Add defensive parsing for solution IDs in headers 4.6.9 - Carbon.Common version update 4.6.8 - Carbon.HttpClient.Auth version update 4.6.7 - While fetching the user’s roles, caching was added. 4.6.6 - Refactored OwnershipFilter to use async/await for external service calls; improved Authorization header handling and permission checks. 4.6.5 - Microsoft.Extensions.Logging package added 4.6.4 - HybridModelBinding updated to 0.17.0 on net8.0 target framework 4.6.3 - Dotnet 8.0 target framework added for minimal api 4.6.2 - Dotnet 8.0 target framework added 4.5.6 - Added a property named overrideMessageAndCode to the CarbonException class. The default value of this property is set to true. In the constructor of CarbonException, check this property to determine whether the message and code are overridden or not. - Update IPageableDto validator for assign PageSize 0. When PageSize 0 the datas returns without pagination with development in version 4.5.3. 4.5.3 - Upgrade Carbon.PagedList (Remove pageSize and pageNumber validation check) 4.5.2 - Updated Carbon.Common nuget package (Added StringExtensions class with ReplaceTurkishChars and ContainsTurkishIgnoreCase methods) 4.5.0 - Degraded health check HTTP status code changed as custom 218 (This Is Fine) status code. Because even if system is degraed it should be working normally, so returning 5XX status code is not right for degraded state. 4.4.1 - Cors should come first before authentication and authorization in startup pipeline 4.4.0 - Carbon.Common updated and Serilog.Enrichers.Sensitive Enricher added for masking sensitive values within logs. 4.3.0 - OwnershipFilter check now disregards solution id header during endpoint permission check 4.2.1 - UnauthorizedOperationException response body is fixed 4.2.0 - UnauthorizedOperationException handling is added 4.1.9 - Carbon.Common updated and IQueryable OrderBy extension method bug fixed 4.1.8 - Carbon.Common updated and nested ordering achieved 4.1.7 - Add CorrelationId to log OnException 4.1.6 - Cors Policy changes(Location parameter is added to WithExposedHeaders) 4.1.5 - ApiPagedResponse is added for PagedListOk. 4.1.4 - Some dependencies updated. 4.1.3 - Cors Allow Credentials support added with any origin accepted - Cors Wildcards accepted 4.1.1 - CarbonException messages are take arguments for dynamic exception messages 4.1.0 - Critical bug fixed for Directory separator char to specific platform (Windows,Linux) 4.0.0 - Carbon now supports Dotnet 6 in terms of both minimal and not minimal - Fluent Validation Upgraded - Swagger Upgraded - BodyRewind deprecated, thus RoleFilteredDto is now unsupported as it is unnecessary just after repository-level validation introduced - Some Performance Improvements
基于MQTTNet二次开发的MQTTClient(MQTT客户端) ***************************说明************************************************** 1.0.2: 去掉 Microsoft.Extensions.DependencyInjection 的依赖避免出现兼容性问题 1.0.3 解决多层继承前端无法获取到数据的问题 1.0.4 1、增加标识(int类型)使用多个MQTTClient时 使各个连接对象过滤掉不必要监听的主题 2、基类中增加连接对象 可通过this.Client 直接调用 3、增加 PublishBinary 发布函数 4、增加 MpscChannel 信号通道 用来跨线程通讯 1.0.6 1、RouterAttribute 标识位放在最后一位 2、MQTTNetClient InitMQTTClient 函数中增加MQTT版本选择 3.10 3.11 5.00 1.0.7 1、优化对外委托部分 1.0.8 1、订阅委托时增加路由模块 1.0.9 1、增加Publish重载函数 作用:同步返回发布消息后的返回 2.0.1 1、目标框架更新为.NET 8.0;.NET 9.0版本(MQTTNet v5.0.1.1416 仅支持.NET >=8.0) 2.0.2 1、在.NET 8.0;.NET 9.0版本基础上兼容netstandard2.1 2、增加异常回调 ******************************************************************************** 使用示例(示例所用为WorkService): ******************************************************************************** Program.cs using example; using MQTTNet.Client; var builder = Host.CreateApplicationBuilder(args); var service = builder.Services; service.AddHostedService<Worker>(); var host = builder.Build(); host.Run(); ******************************************************************************** Worker.cs using MQTTNet.Client.Attributes; using MQTTNet.Client.Model; using MQTTNet.Client.Common; using MQTTNet.Client.Enums; namespace example { public class Worker : BackgroundService { private readonly ILogger<Worker> _logger; public Worker(ILogger<Worker> logger) { _logger = logger; } IMQTTNetClient client = null; protected override async Task ExecuteAsync(CancellationToken stoppingToken) { IMQTTNetClient client = new MQTTNet.Client.MQTTNetClient("127.0.0.1", 6688, UserName: "admspay", Password: "admscarpays", Identity: 2); if (await client.Connection()) _logger.LogInformation("连接成功"); await client.Subscribe("+/device/message/up/ivs_result", "GetData", typeof(aaaa)); IMQTTNetClient clients = new MQTTNet.Client.MQTTNetClient("127.0.0.1", 9900, UserName: "", Password: "",Identity: 0); await clients.Connection(); } } public class aaaa : ReceivedModel { public async Task GetData(test resultR3) { if (resultR3 == null) return; Console.WriteLine($@"a:{resultR3.ObjectToJson()}"); Console.WriteLine($@"主题:{this.Topic}"); Console.WriteLine($@"原始字符串:{this.Content}"); await Task.CompletedTask; } } public class MQTTData : ReceivedModel { [Router("+/device/message/up/ivs_result" ,_qos:QOSEnum.ExactlyOnce, _identity:0)] public async Task GetData(test resultR3) { if (resultR3 == null) return; Console.WriteLine($@"a:{resultR3.ObjectToJson()}"); Console.WriteLine($@"主题:{this.Topic}"); Console.WriteLine($@"原始字符串:{this.Content}"); await Task.CompletedTask; } [Router("+/Synchronous/VehicleRegist", _qos: MQTTNet.Client.Enums.QOSEnum.ExactlyOnce,_identity: 2)] public async Task Env_VehicleRegistMQTT(ReceeivedProgramdata obj) { this.Client.Publish(obj.ReTopic, new { Tag = 0, Message = "123321", Description = string.Empty, Total = 0 }.ObjectToJson()); } } public class test { public Guid strc { get; set; } public string? strs { get; set; } public string? stra { get; set; } public List<test1> array { get; set; } } }
A new age customized nuget to help developers configure emailing service with ease and quickly for their application. Package contains methods to send email using SMTP and third party email providers according to users preference. It is a simple easy to use helper class containing methods to send email using SMTP and third party email service providers i.e. Sendgrid, AWS SES.
A robust and flexible library designed for converting XML data to JSON format in C#. The core class, XmlToJsonConverterService, enables users to seamlessly transform XML strings into JSON strings with customizable options.