-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
174 lines (134 loc) · 9.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="generator" content="Bootply" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>StructureMap - Integrating StructureMap into Common .Net Frameworks</title>
<link href="/content/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/content/prism.css" rel="stylesheet" type="text/css" />
<link href="/content/theme.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
<link rel="icon" type="image/x-icon" href="/content/images/structuremap-logo.ico">
<link rel="icon" type="image/png" href="/content/images/structuremap-logo-60x60.png">
<link rel="apple-touch-icon" type="image/png" href="/content/images/structuremap-logo-60x60.png">
<link rel="apple-touch-icon" type="image/png" sizes="72x72" href="/content/images/structuremap-logo-72x72.png">
<link rel="apple-touch-icon" type="image/png" sizes="114x114" href="/content/images/structuremap-logo-114x114.png">
<link rel="apple-touch-icon" type="image/png" sizes="144x144" href="/content/images/structuremap-logo-144x144.png">
<!-- CSS code from Bootply.com editor -->
<link href="/content/affix.css" rel="stylesheet" type="text/css" />
</head>
<!-- HTML code from Bootply.com editor -->
<body >
<a href="https://github.com/structuremap/structuremap"><img style="z-index: 5000; position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<nav class="navbar navbar-default navbar-fixed-top" role="banner">
<div class="container">
<div class="navbar-header">
<a href="/" class="navbar-brand">StructureMap 4.7.0</a>
</div>
<nav class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav pull-right">
<li>
<a href="/quickstart">A Gentle Quickstart</a>
</li>
<li>
<a href="/documentation">Documentation</a>
</li>
<li>
<a href="https://groups.google.com/forum/#!forum/structuremap-users">Google Group</a>
</li>
<li>
<a href="https://gitter.im/structuremap/structuremap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://camo.githubusercontent.com/da2edb525cde1455a622c58c0effc3a90b9a181c/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667" alt="Join the chat at https://gitter.im/structuremap/structuremap" data-canonical-src="https://badges.gitter.im/Join%20Chat.svg" style="max-width:100%;"></a>
</li>
<li><a href="/instances" title="Custom Instance Types">Previous</a></li>
</ul>
<div class="navbar-form navbar-left" role="search">
<div class="form-group">
<input id="search" type="search" class="form-control" placeholder="Search">
</div>
</div>
</nav>
</div>
</nav>
<div class="container">
<nav class="navbar-inverse">
<ol class="breadcrumb"><li><a href="/">StructureMap</a></li><li class="active">Integrating StructureMap into Common .Net Frameworks</li></ol>
</nav>
</div>
<!--main-->
<div class="container">
<div class="row">
<!--left-->
<div class="col-md-3" id="leftCol">
<ul class="nav nav-stacked affix" id="sidebar">
<li><h3><img src="/content/images/structuremap-logo-210x210.png" alt="StructureMap 4.7.0" width="210" height="210"></h3></li>
<li><h3 class="no-margin">Previous</h3><a href="/instances">Custom Instance Types</a></p></li>
</ul>
</div><!--/left-->
<!--right-->
<div class="col-md-9">
<h1>Integrating StructureMap into Common .Net Frameworks <a href="https://github.com/structuremap/structuremap/blob/master/documentation/integrations/index.md" class="text-muted small pull-right fa fa-github" style="margin-top: 10px"> Edit on GitHub</a></h1>
<hr />
<div id="main-pane">
<!--Title: Integrating StructureMap into Common .Net Frameworks-->
<p>Want to see more integrations or samples of how to integrate StructureMap with various .Net development tools? Let us know in Gitter or Github, or better yet, <strong>we take pull requests for documentation.</strong></p>
<h2 id="asp.net-mvc-5">ASP.NET MVC 5</h2>
<p>The StructureMap team recommends the <a href="https://www.nuget.org/packages/StructureMap.MVC5/">StructureMap.MVC5</a> NuGet package for integrating
StructureMap into ASP.NET MVC. The design is necessarily odd to work around ASP.NET limitations, but you do get the all
important "<a href="/the-container/nested-containers">nested container</a> per HTTP request" pattern that we recommend.</p>
<h2 id="asp.net-web-api">ASP.NET Web API</h2>
<p>The easiest way to integrate StructureMap with ASP.NET Web API is with the <a href="https://www.nuget.org/packages/WebApi.StructureMap">WebApi.StructureMap</a> NuGet package. This package requires StructureMap 4.1 or higher.
Use the <a href="https://www.nuget.org/packages/StructureMap.WebApi2/">StructureMap.WebApi2</a> NuGet package for older versions of StructureMap or combined ASP.NET MVC and Web API projects where you already use the <a href="https://www.nuget.org/packages/StructureMap.MVC5/">StructureMap.MVC5</a> NuGet package.</p>
<h2 id="asp.net-core">ASP.NET Core</h2>
<p>See the <a href="https://github.com/structuremap/StructureMap.Microsoft.DependencyInjection">StructureMap.Microsoft.DependencyInjection</a> project and NuGet package for integration with ASP.NET Core.</p>
<h2 id="nservicebus">NServiceBus</h2>
<p>Use the <a href="https://www.nuget.org/packages/NServiceBus.StructureMap/">NServiceBus StructureMap</a> NuGet package for integrating StructureMap 3 into
NServiceBus.</p>
<h2 id="nancyfx">NancyFx</h2>
<p>NancyFx provides the <a href="https://www.nuget.org/packages/Nancy.Bootstrappers.StructureMap/">Nancy.Bootstrappers.StructureMap</a> NuGet package. The early
versions of the NancyFx integration with StructureMap were deeply flawed but improved in later versions, so do make sure that you are using the latest version of the bootstrapper.</p>
<h2 id="masstransit">MassTransit</h2>
<p>Use the <a href="http://www.nuget.org/packages/MassTransit.StructureMap/">MassTransit.StructureMap</a> NuGet package. <strong>Unfortunately</strong>, this package
depends on the <a href="http://www.nuget.org/packages/structuremap-signed/">signed version of StructureMap</a>, so prepare yourself for version conflicts,
binding redirects, and the fusion log viewer. See the <a href="http://docs.masstransit-project.com/en/latest/usage/containers/structuremap.html">MassTransit documentation on using StructureMap</a> for more information.</p>
<h2 id="entity-framework">Entity Framework</h2>
<p>The best example is <a href="https://lostechies.com/jimmybogard/2013/12/20/proper-sessiondbcontext-lifecycle-management/">this blog post from Jimmy Bogard</a>.</p>
<h2 id="automapper">AutoMapper</h2>
<p>See <a href="http://www.martijnburgers.net/post/2013/12/20/My-AutoMapper-setup-for-StructureMap.aspx">My AutoMapper setup for StructureMap</a> from Martijn Burgers.</p>
</div>
<hr />
<nav>
<span>
<strong>Previous: </strong><a href="/instances">Custom Instance Types</a>
</span>
<span class="pull-right">
</span>
</nav>
</div><!--/right-->
</div><!--/row-->
</div><!--/container-->
</body>
<foot>
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type='text/javascript' src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/content/embed.js"></script>
<script type="text/javascript" src="/content/prism.js"></script>
<script type="text/javascript" src="/content/sidebar.js"></script>
<script type="text/javascript" src="/content/affix.js"></script>
<script>
$('#search').keyup(function(e){
if(e.keyCode == 13) {
var search = $('#search').val();
var url = 'https://www.google.com/#q=site:structuremap.github.io ' + search;
url = encodeURI(url);
//alert(url);
window.location.href = url;
e.stopPropagation();
if (e.cancelBubble!=null) e.cancelBubble = true;
return false;
}
});
</script>
</foot>
</html>