forked from man-group/dapr-sidekick-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDaprOptions.cs
32 lines (27 loc) · 922 Bytes
/
DaprOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace Man.Dapr.Sidekick
{
public class DaprOptions : Options.DaprProcessOptions
{
public const string SectionName = "Dapr";
public DaprOptions()
{
// Set defaults for all components
LogLevel = Process.DaprProcessLogger.DebugLevel;
}
public DaprSidecarOptions Sidecar { get; set; }
public DaprPlacementOptions Placement { get; set; }
public DaprSentryOptions Sentry { get; set; }
/// <summary>
/// Creates a deep clone of this instance.
/// </summary>
/// <returns>A deep clone of this insteance.</returns>
public new DaprOptions Clone()
{
var clone = (DaprOptions)base.Clone();
clone.Sidecar = Sidecar?.Clone();
clone.Placement = Placement?.Clone();
clone.Sentry = Sentry?.Clone();
return clone;
}
}
}