Interface ISessionBuilder
Used for building Microsoft.AspNetCore.Http.ISession.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.Session.dll
Syntax
public interface ISessionBuilder
Methods
| Improve this Doc View SourceWithEntries(IDictionary<String, Byte[]>)
Adds byte array session entries to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntries(IDictionary<string, byte[]> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Byte[]> | entries | Byte array session entries as dictionary. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntries(IDictionary<String, Int32>)
Adds integer session entries to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntries(IDictionary<string, int> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Int32> | entries | Integer session entries as dictionary. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntries(IDictionary<String, String>)
Adds string session entries to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntries(IDictionary<string, string> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | entries | String session entries as dictionary. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntries(Object)
Adds session entries to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntries(object entries)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entries | Session entries as anonymous object. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntry(String, Byte[])
Adds byte array session entry to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntry(string key, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to set as string. |
System.Byte[] | value | Value to set as byte array. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntry(String, Int32)
Adds integer session entry to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntry(string key, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to set as string. |
System.Int32 | value | Value to set as integer. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithEntry(String, String)
Adds string session entry to the built Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithEntry(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to set as string. |
System.String | value | Value to set as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |
WithId(String)
Sets session ID to the build Microsoft.AspNetCore.Http.ISession.
Declaration
IAndSessionBuilder WithId(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | Session ID to set as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder. |