This project is now archived. Main techniques are migrated to EmitToolbox, for name of Prism is the same to another famous UI library. In new project, the design is reworked to provide more flexibility and convenience to use.
Prism Framework is an AOP framework based on IL dynamic weaving, which provides interfaces and classes to generate proxy classes in run-time.
This project also contains some common mechanisms based on the Prism Framework, such as Decorating (Run-time Method Decorator) and Injecting (IoC).
This project is still under rapid development towards goals as below:
- Convenient to use. This requires developers of this project to lower the complexity of its API.
- High performance. All AOP implementations have efficiency loss in varying degrees. This project aims at reducing the RAM and time consumption of the proxy procedure.
- Extensible to other scenarios. The Prism Framework is an AOP framework, and its designed to help developers to develop other techniques based on AOP, rather than let users directly use this framework, which might be hard.
- Decorating: A plugin which allows users to decorate (modify) the behavior of methods in run-time.
- Injecting: A plugin which implements dependency injection (IoC) in proxy classes, which can significantly improve the performance.
- Remoting: A plugin which provides remote procedure call (RPC) support by encoding and decoding invocation contexts; data transmission ability is not included.
If you have any ideas or suggestions, please open a new issue to let us know. Hereby allow us to express our heartfelt gratefulness for your help.
Since the goals of Remoting plugin are achieved, the developer team will focus on bugs fixing and performance improvement for a while, until another plugin design is added to the road map.
Since it is a open-source project, we appreciate and welcome contribution in any forms, including:
- Bug reporting. Please report any bugs you met via issues.
- Function suggestions. Please share your ideas or suggestion via issues, or email to our official email pygmalions@hotmail.com or manager email jia.vincent@hotmail.com .
- Pull requests. Please create pull requests in this repository, and we can continue the following procedure.
- Plugins. You can submit your plugins as pull requests, or tell us the plugin repository address, and we are happy and grateful to add a link to your plugin.
This framework is still under rapid development, thus its API may be unstable. If you are looking for mature frameworks, please allow us to recommend those production-ready projects for you:
Castle: A widely recognized AOP framework, also based on dynamic IL weaving.
PostSharp: A mature commercial AOP project, which is based on source weaving. This framework inject codes in the compiling stage as a MSBuild task.
Ninject: A widely used convenient IoC library. It is easy to use and it have many useful extensions.
Spring.NET: A .NET implementation of the famous Java framework Spring. It is a heavyweight yet comprehensive framework, including but not limited to AOP and IoC.
gRPC: A widely used high-performance RPC framework. It support a large range of programming languages and operating systems.
Since the Serialization plugin will not be on the road map in the near future, you may need serialization tools to use along with our Remoting plugin.
protobuf-net: A C# wrapper of gRPC. It is designed to be convenient to use for C# developers. By simply add the 'ProtoContract' attribute to a class can make it serializable.