Commit 129b7f7a authored by yangxiaodong's avatar yangxiaodong

update samples.

parent 1a06783c
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />
......
...@@ -26,7 +26,7 @@ namespace Sample.Kafka.SqlServer ...@@ -26,7 +26,7 @@ namespace Sample.Kafka.SqlServer
d.NodeName = "CAP 2号节点"; d.NodeName = "CAP 2号节点";
}); });
}); });
services.AddSession();
services.AddMvc(); services.AddMvc();
} }
...@@ -35,6 +35,8 @@ namespace Sample.Kafka.SqlServer ...@@ -35,6 +35,8 @@ namespace Sample.Kafka.SqlServer
loggerFactory.AddConsole(); loggerFactory.AddConsole();
loggerFactory.AddDebug(); loggerFactory.AddDebug();
app.UseSession();
app.UseMvc(); app.UseMvc();
app.UseCap(); app.UseCap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment