Popular Posts
-
Kendo UI applying SUM in footer template kendo ui - KendoUI: Grid Summary values in Footer - Stack Overflow : ", footerTemplate:...
-
MVC grid example ASP.NET MVC Flexigrid sample - CodeProject : 'via Blog this'
-
A possible way of handling distributed transaction for multiple contexts without alleviation to MSDTC??? c# - Entity Framework - Using Trans...
Wednesday, April 29, 2015
Saturday, April 25, 2015
Asp.net 5 features
http://stephenwalther.com/archive/2015/02/24/top-10-changes-in-asp-net-5-and-mvc-6
Friday, April 24, 2015
NCalc - Mathematical Expressions Evaluator for .NET - Home
NCalc - Mathematical Expressions Evaluator for .NET - Home
calculate mathematical expression - eval string expression in c#
calculate mathematical expression - eval string expression in c#
Web Forms - AUTOFAC DEPENCEY INJECTION
Web Forms — Autofac 3.3 documentation
This worked:
public class Global : HttpApplication, IContainerProviderAccessor
{
// Provider that holds the application container.
static IContainerProvider _containerProvider;
// Instance property that will be used by Autofac HttpModules
// to resolve and inject dependencies.
public IContainerProvider ContainerProvider
{
get { return _containerProvider; }
}
void Application_Start(object sender, EventArgs e)
{
// Build up your application container and register your dependencies.
var builder = new ContainerBuilder();
var assemblies = new List<Assembly>();
assemblies.Add(Assembly.Load("Questionnaire.RepositoriesInterfaces"));
assemblies.Add(Assembly.Load("Questionnaire.Data"));
assemblies.Add(Assembly.Load("Questionnaire.Business"));
builder.RegisterAssemblyTypes(assemblies.ToArray()).AsImplementedInterfaces();
_containerProvider = new ContainerProvider(builder.Build());
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
This worked:
public class Global : HttpApplication, IContainerProviderAccessor
{
// Provider that holds the application container.
static IContainerProvider _containerProvider;
// Instance property that will be used by Autofac HttpModules
// to resolve and inject dependencies.
public IContainerProvider ContainerProvider
{
get { return _containerProvider; }
}
void Application_Start(object sender, EventArgs e)
{
// Build up your application container and register your dependencies.
var builder = new ContainerBuilder();
var assemblies = new List<Assembly>();
assemblies.Add(Assembly.Load("Questionnaire.RepositoriesInterfaces"));
assemblies.Add(Assembly.Load("Questionnaire.Data"));
assemblies.Add(Assembly.Load("Questionnaire.Business"));
builder.RegisterAssemblyTypes(assemblies.ToArray()).AsImplementedInterfaces();
_containerProvider = new ContainerProvider(builder.Build());
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
Wednesday, April 8, 2015
Thursday, April 2, 2015
Subscribe to:
Posts (Atom)