File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -63,38 +63,9 @@ public static IResourceBuilder<T> WithDaprSidecar<T>(this IResourceBuilder<T> bu
63
63
} ) ;
64
64
65
65
66
- var serviceId = builder . Resource . Name ;
67
66
68
67
configureSidecar ( sidecarBuilder ) ;
69
68
70
- if ( sidecarBuilder . Resource . TryGetAnnotationsOfType < DaprSidecarOptionsAnnotation > ( out var optionsAnnotations ) &&
71
- optionsAnnotations . LastOrDefault ( ) is { } optionsAnnotation )
72
- {
73
- // If no AppId was specified, use the resource name.
74
- if ( string . IsNullOrEmpty ( optionsAnnotation . Options . AppId ) )
75
- {
76
- sidecarBuilder . WithOptions ( new DaprSidecarOptions
77
- {
78
- AppId = serviceId ,
79
- Config = optionsAnnotation . Options . Config ,
80
- EnableApiLogging = optionsAnnotation . Options . EnableApiLogging ,
81
- LogLevel = optionsAnnotation . Options . LogLevel ,
82
- EnableProfiling = optionsAnnotation . Options . EnableProfiling ,
83
- MetricsPort = optionsAnnotation . Options . MetricsPort ,
84
- DaprHttpPort = optionsAnnotation . Options . DaprHttpPort ,
85
- DaprGrpcPort = optionsAnnotation . Options . DaprGrpcPort ,
86
- } ) ;
87
- }
88
- }
89
- else
90
- {
91
- // No options were specified, so set a default AppId.
92
- sidecarBuilder . WithOptions ( new DaprSidecarOptions
93
- {
94
- AppId = serviceId ,
95
- } ) ;
96
- }
97
-
98
69
99
70
return builder . WithAnnotation ( new DaprSidecarAnnotation ( sidecarBuilder . Resource ) ) ;
100
71
}
You can’t perform that action at this time.
0 commit comments