| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | #nullable enable |
| | | 4 | | |
| | | 5 | | using System.Collections.Immutable; |
| | | 6 | | using System.Net.Security; |
| | | 7 | | |
| | | 8 | | namespace Ice; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Represents a set of options that you can specify when initializing a communicator. |
| | | 12 | | /// </summary> |
| | | 13 | | public 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> |
| | 1 | 20 | | public Properties? properties { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the logger for the communicator. |
| | | 24 | | /// </summary> |
| | 1 | 25 | | public Logger? logger { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the communicator observer used by the Ice runtime. |
| | | 29 | | /// </summary> |
| | 1 | 30 | | 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> |
| | 1 | 35 | | 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> |
| | 1 | 40 | | 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> |
| | 1 | 45 | | 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> |
| | 1 | 50 | | 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> |
| | 1 | 56 | | 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> |
| | 1 | 62 | | 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> |
| | 1 | 67 | | public SliceLoader? sliceLoader { get; set; } |
| | | 68 | | } |