Rename project dependencies for web app
diff --git a/SessionSample/SessionSample.csproj b/SessionSample/SessionSample.csproj
index c052a62..2d32264 100644
--- a/SessionSample/SessionSample.csproj
+++ b/SessionSample/SessionSample.csproj
@@ -7,11 +7,17 @@
<ItemGroup>
<PackageReference Include="Steeltoe.Common.Hosting" Version="3.0.0-m2" />
- <PackageReference Include="Steeltoe.ConnectorCore" Version="3.0.0-gemfire" />
+ <PackageReference Include="Steeltoe.ConnectorCore" Version="3.0.0-gemfire">
+ <IncludeAssets>Yes</IncludeAssets>
+ </PackageReference>
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\GemFireCache\Apache.Geode.Session.csproj" />
+ <ProjectReference Include="..\GemFireCache\Apache.Geode.DotNetCore.Session.csproj" />
+ <ProjectReference Include="..\GemfireDotNet\Apache.Geode.DotNetCore.csproj">
+ <Private>true</Private>
+ </ProjectReference>
</ItemGroup>
+
</Project>
diff --git a/SessionSample/Startup.cs b/SessionSample/Startup.cs
index 2815500..40a40c2 100644
--- a/SessionSample/Startup.cs
+++ b/SessionSample/Startup.cs
@@ -17,11 +17,6 @@
#region snippet1
public class Startup
{
- CacheFactory cacheFactory;
- Cache cache;
- PoolFactory poolFactory;
- RegionFactory regionFactory;
-
public Startup(IConfiguration configuration)
{
Configuration = configuration;
@@ -79,43 +74,6 @@
endpoints.MapRazorPages();
});
}
-
- private void InitializeGemFireObjects()
- {
- Console.WriteLine("Create PoolFactory");
- //gemfireCache.TypeRegistry.PdxSerializer = new ReflectionBasedAutoSerializer();
-
- try
- {
- Console.WriteLine("Create Pool");
- // make sure the pool has been created
- poolFactory.CreatePool("pool");
- }
- catch (Exception ex) { };
- //catch (IllegalStateException e)
- //{
- // // we end up here with this message if you've hit the reset link after the pool was created
- // if (e.Message != "Pool with the same name already exists")
- // {
- // throw;
- // }
- //}
-
- Console.WriteLine("Create Cache RegionFactory");
- var regionFactory = cache.CreateRegionFactory(RegionShortcut.Proxy);
- try
- {
- Console.WriteLine("Create CacheRegion");
- regionFactory.CreateRegion("SteeltoeDemo");
- Console.WriteLine("CacheRegion created");
- }
- catch (Exception ex) { };
- //catch
- //{
- // Console.WriteLine("Create CacheRegion failed... now trying to get the region");
- // cacheRegion = gemfireCache.GetRegion<string, string>(_regionName);
- //}
- }
}
#endregion
}