# BusinessLib **Repository Path**: andyshao/BusinessLib ## Basic Information - **Project Name**: BusinessLib - **Description**: 这是一个服务端AOP敏捷架构 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://github.com/xlievo/BusinessLib - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-02-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BusinessLib NuGet:https://www.nuget.org/packages/Business.Lib/ # This is a Server framework # Please refer to the UnitTest # Arguments receive the beginning [Json] public struct Register { [CanNotNull(-11, "\"account\" not is null")] [Size(-12, Min = 4, Max = "8")] [CheckChar(-13, "\" char account\" verification failed", Mode = Help.CheckCharMode.All)] public string account; } # IResult end public interface ISerialize { /// /// ProtoBuf /// /// byte[] ToBytes(); /// /// Json /// /// string ToString(); } public interface IResult : Authentication.ISerialize { /// /// The results of the state is greater than or equal to 1: success, equal to 0: not to capture the system level exceptions, less than 0: business class error. /// System.Int32 State { get; set; } /// /// Success can be null /// System.String Message { get; set; } /// /// Specific Byte/Json data objects /// dynamic Data { get; } /// /// Json Data /// /// string ToDataString(); /// /// ProtoBuf Data /// /// byte[] ToDataBytes(); } public interface IResult : IResult { /// /// Specific Byte/Json data objects /// new DataType Data { get; set; } } # Include session handling public interface ISession : ISerialize { System.String Site { get; set; } System.String Account { get; set; } System.String Password { get; set; } System.String Key { get; set; } System.String IP { get; set; } System.DateTime Time { get; set; } System.Collections.Generic.List Competences { get; set; } ISession Clone(); } public interface ISession : ISession { new ISession Clone(); DataType Data { get; set; } }