# KsefOnlineSession

An online session owning its AES-256 key and IV. Submission and close are serialized; ambiguous mutations stop further mutation of this handle.

Class 

`OfficeIMO.Invoicing.KSeF`

**Namespace**

`OfficeIMO.Invoicing.KSeF`

**Assembly**

`OfficeIMO.Invoicing.KSeF`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[KsefOnlineSession.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefOnlineSession.cs#L29)

**Implements**

`IDisposable`

**Modifiers**

sealed

An online session owning its AES-256 key and IV. Submission and close are serialized; ambiguous mutations stop further mutation of this handle.

## Inheritance

- object
- KsefOnlineSession

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [KsefClient.OpenOnlineSessionAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-openonlinesessionasync-officeimo-invoicing-ksef-ksefcredentials-threading-cancellationtoken)

### Accepted by parameters 2

- Method [KsefClient.CloseOnlineSessionAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-closeonlinesessionasync-officeimo-invoicing-ksef-ksefcredentials-officeimo-invoicing-ksef-ksefonlinesession-threading-cancellationtoken) parameter `session`
- Method [KsefClient.SubmitAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-submitasync-officeimo-invoicing-ksef-ksefcredentials-officeimo-invoicing-ksef-ksefonlinesession-byte-officeimo-invoicing-validation-fa3schemavalidator-threading-cancellationtoken) parameter `session`

Filter members 

Show inherited

## Methods

`public void Dispose()` [#](#method-dispose)

[KsefOnlineSession.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefOnlineSession.cs#L29)

Clears owned key material. An already dispatched operation may still complete; this does not close the remote session.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string ReferenceNumber { get; }` [#](#property-referencenumber)

[KsefOnlineSession.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefOnlineSession.cs#L18)

Official session reference.

`public DateTimeOffset ValidUntil { get; }` [#](#property-validuntil)

[KsefOnlineSession.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefOnlineSession.cs#L20)

Server-declared session expiration.

<!-- PowerForge markdown artifact sha256:B223E6B586A9BEB9FCDD3CD7EA12F7284862ACADEE3373BC346B3610E2CC12B1 -->
