Boilerplate for application development
This framework is built to help development of n-tier applications by giving service oriented architectural platform. You may built your apps by implementing of certain libraries. Each library provides components for easiy implementations of repository pattern, unit of work, mapping, logging, aop etc.
Continuously in development with new feautures.
This module is the startup module of entire SenseFramework domain. If you have implemnted any other SenseFramework modules in an application, to run them all, you need an implementation of SenseFramework
This module can be called in any start point of application.
Windows Service Applicaition
protected override void OnStart(string[] args)
{
var task = new Task(() =>
{
var fm = new SenseFrameworkModule();
// to display senseframework events use;
fm.TrackMessages += fm_TrackMessages;
fm.StartUp();
});
task.Start();
}
private static void fm_TrackMessages(string message)
{
//get messages
}
Senseframework supports log4net. So if you want to startup a project with SenseFrameworkModule;
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<!--<conversionPattern value="%date %-5level %thread: %message%newline" />-->
<conversionPattern value="%date %level %thread %logger - %message%newline" />
</layout>
</appender>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="debug.log" />
<appendToFile value="true" />
<maximumFileSize value="100KB" />
<maxSizeRollBackups value="2" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %level %thread %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="Console" />
<appender-ref ref="RollingFile" />
</root>
</log4net>
</configuration>
This call will scan all modules of SenseFramework and will run up.