[ https://issues.apache.org/jira/browse/GEODE-9359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390707#comment-17390707 ]
ASF GitHub Bot commented on GEODE-9359: --------------------------------------- pivotal-jbarrett commented on a change in pull request #834: URL: https://github.com/apache/geode-native/pull/834#discussion_r680108376 ########## File path: netcore/NetCore.Session.IntegrationTests/NetCore.Session.IntegrationTests.csproj ########## @@ -0,0 +1,26 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>netcoreapp3.1</TargetFramework> + + <IsPackable>false</IsPackable> + + <Platforms>x64</Platforms> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> + <PackageReference Include="xunit" Version="2.4.1" /> + <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> Review comment: Spacing is not consistent. ########## File path: netcore/NetCore.Session.IntegrationTests/NetCore.Session.IntegrationTests.csproj ########## @@ -0,0 +1,26 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>netcoreapp3.1</TargetFramework> + + <IsPackable>false</IsPackable> + + <Platforms>x64</Platforms> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" /> + <PackageReference Include="xunit" Version="2.4.1" /> + <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> + <PrivateAssets>all</PrivateAssets> Review comment: You have this one specifically tagged with this `PrivateAssets` tag but none of the others. ########## File path: netcore/NetCore.Session.IntegrationTests/SessionStateIntegrationTests.cs ########## @@ -0,0 +1,176 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +using System; +using System.Text; +using Xunit; +using Apache.Geode.Client; +using System.Linq; +using Microsoft.Extensions.Caching.Distributed; +using System.Threading.Tasks; + +namespace Apache.Geode.Session.IntegrationTests { + public class SessionStateIntegrationTests { + private static string _regionName = "exampleRegion"; + + [Fact] + public void SetGet() { + var ssCacheOptions = new GeodeSessionStateCacheOptions(); + ssCacheOptions.Host = "localhost"; + ssCacheOptions.Port = 10334; + ssCacheOptions.RegionName = "exampleRegion"; + + using var ssCache = new GeodeSessionStateCache(ssCacheOptions); + + var options = new DistributedCacheEntryOptions(); + DateTime localTime = DateTime.Now.AddDays(1); + DateTimeOffset dateAndOffset = + new DateTimeOffset(localTime, TimeZoneInfo.Local.GetUtcOffset(localTime)); + options.AbsoluteExpiration = dateAndOffset; + var testValue = new byte[] { 1, 2, 3, 4, 5 }; + ssCache.Set("testKey", testValue, options); + byte[] value = ssCache.Get("testKey"); Review comment: There are numerous places where we are not using `var`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org > add net-core-session to geode-native > ------------------------------------ > > Key: GEODE-9359 > URL: https://issues.apache.org/jira/browse/GEODE-9359 > Project: Geode > Issue Type: New Feature > Components: native client > Reporter: Ernest Burghardt > Priority: Major > Labels: pull-request-available > > net-core-session shall be added to the top level of geode-native repo and > will produce a separate binary that will be publishable to NuGet > https://docs.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices -- This message was sent by Atlassian Jira (v8.3.4#803005)