< Summary

Information
Class: Ice.InitializationData
Assembly: Ice
File(s): /_/csharp/src/Ice/InitializationData.cs
Tag: 91_21789722663
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 68
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 21
Total methods: 21
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_properties()100%11100%
set_properties(...)100%11100%
get_logger()100%11100%
set_logger(...)100%11100%
get_observer()100%11100%
set_observer(...)100%11100%
get_threadStart()100%11100%
set_threadStart(...)100%210%
get_threadStop()100%11100%
set_threadStop(...)100%210%
get_executor()100%11100%
set_executor(...)100%11100%
get_batchRequestInterceptor()100%11100%
set_batchRequestInterceptor(...)100%11100%
get_clientAuthenticationOptions()100%11100%
set_clientAuthenticationOptions(...)100%11100%
get_pluginFactories()100%11100%
set_pluginFactories(...)100%11100%
.ctor()100%11100%
get_sliceLoader()100%11100%
set_sliceLoader(...)100%11100%

File(s)

/_/csharp/src/Ice/InitializationData.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5using System.Collections.Immutable;
 6using System.Net.Security;
 7
 8namespace Ice;
 9
 10/// <summary>
 11/// Represents a set of options that you can specify when initializing a communicator.
 12/// </summary>
 13public sealed record class InitializationData
 14{
 15    /// <summary>
 16    /// Gets or sets the properties for the communicator.
 17    /// </summary>
 18    /// <remarks>When non-null, this corresponds to the object returned by the <see cref="Communicator.getProperties" />
 19    /// method.</remarks>
 120    public Properties? properties { get; set; }
 21
 22    /// <summary>
 23    /// Gets or sets the logger for the communicator.
 24    /// </summary>
 125    public Logger? logger { get; set; }
 26
 27    /// <summary>
 28    /// Gets or sets the communicator observer used by the Ice runtime.
 29    /// </summary>
 130    public Instrumentation.CommunicatorObserver? observer { get; set; }
 31
 32    /// <summary>
 33    /// Gets or sets a function that the communicator calls when it starts a new thread.
 34    /// </summary>
 135    public Action? threadStart { get; set; }
 36
 37    /// <summary>
 38    /// Gets or sets a function that the communicator calls when it destroys a thread.
 39    /// </summary>
 140    public Action? threadStop { get; set; }
 41
 42    /// <summary>
 43    /// Gets or sets a function that the communicator calls to execute dispatches and async invocation callbacks.
 44    /// </summary>
 145    public Action<Action, Connection?>? executor { get; set; }
 46
 47    /// <summary>
 48    /// Gets or sets the batch request interceptor, which is called by the Ice runtime to enqueue a batch request.
 49    /// </summary>
 150    public Action<BatchRequest, int, int>? batchRequestInterceptor { get; set; }
 51
 52    /// <summary>
 53    /// Gets or sets the authentication options for SSL client connections. When set, the SSL transport ignores all
 54    /// IceSSL configuration properties and uses these options.
 55    /// </summary>
 156    public SslClientAuthenticationOptions? clientAuthenticationOptions { get; set; }
 57
 58    /// <summary>
 59    /// Gets or sets a list of plug-in factories. The corresponding plug-ins are created during communicator
 60    /// initialization, in order, before all other plug-ins.
 61    /// </summary>
 162    public IList<PluginFactory> pluginFactories { get; set; } = ImmutableList<PluginFactory>.Empty;
 63
 64    /// <summary>
 65    /// Gets or sets the Slice loader, used to unmarshal Slice classes and exceptions.
 66    /// </summary>
 167    public SliceLoader? sliceLoader { get; set; }
 68}