SenseFramework 1.0.21

There is a newer version of this package available.
See the version list below for details.
dotnet add package SenseFramework --version 1.0.21                
NuGet\Install-Package SenseFramework -Version 1.0.21                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SenseFramework" Version="1.0.21" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SenseFramework --version 1.0.21                
#r "nuget: SenseFramework, 1.0.21"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SenseFramework as a Cake Addin
#addin nuget:?package=SenseFramework&version=1.0.21

// Install SenseFramework as a Cake Tool
#tool nuget:?package=SenseFramework&version=1.0.21                

SenseFramework

Build status

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.

Modules

1. Core
  • SenseFramework.Core : Core library which manages all components of an application.
2. Data
  • SenseFramework.Data.EntityFramework : This library contains support for Entity Framework with default Context and repository pattern.
  • SenseFramework.Data.MongoDb : This library contains components to use MongoDb context with repository patttern.
  • SenseFramework.Data.NHibernate : This library is as same as EntityFramework but uses Nhibernate platform to build mappings with code first.
3. Bussiness
  • SenseFramework.Applications : This module provides interface to integrate your bussiness logic with senseframework.
  • SenseFramework.Services : This library is for registering WCF services in your service layer.
  • SenseFramework : This library is startup point of the application. This library must be called in the client runtime application. (Console or Windows Service)

Progress

Continuously in development with new feautures.

SenseFramework module

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.

For Example

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
}


Add log4net.config

Senseframework supports log4net. So if you want to startup a project with SenseFrameworkModule;

  1. Add log4net.config
  2. Set Copy to Output Directory to Copy always or Copy if newer
Sample log4net.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <log4net>
    <appender name="Console" type="log4net.Appender.ConsoleAppender">
      <layout type="log4net.Layout.PatternLayout">
        
        <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.

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.22 508 7/24/2022
1.0.21 874 12/9/2018

SenseFramework main module