Ver a proveniência

update samples.

master
yangxiaodong há 7 anos
ascendente
cometimento
129b7f7aa7
2 ficheiros alterados com 4 adições e 1 eliminações
  1. +1
    -0
      samples/Sample.Kafka.SqlServer/Sample.Kafka.SqlServer.csproj
  2. +3
    -1
      samples/Sample.Kafka.SqlServer/Startup.cs

+ 1
- 0
samples/Sample.Kafka.SqlServer/Sample.Kafka.SqlServer.csproj Ver ficheiro

@@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" 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.Design" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />


+ 3
- 1
samples/Sample.Kafka.SqlServer/Startup.cs Ver ficheiro

@@ -26,7 +26,7 @@ namespace Sample.Kafka.SqlServer
d.NodeName = "CAP 2号节点";
});
});
services.AddSession();
services.AddMvc();
}

@@ -35,6 +35,8 @@ namespace Sample.Kafka.SqlServer
loggerFactory.AddConsole();
loggerFactory.AddDebug();

app.UseSession();

app.UseMvc();

app.UseCap();


Carregando…
Cancelar
Guardar