1 write to _spec
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
HubServerProxyGenerator.Emitter.cs (1)
20
_spec
= spec;
25 references to _spec
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (25)
HubServerProxyGenerator.Emitter.cs (25)
25
if (string.IsNullOrEmpty(
_spec
.GetterClassAccessibility) ||
26
string.IsNullOrEmpty(
_spec
.GetterMethodAccessibility) ||
27
string.IsNullOrEmpty(
_spec
.GetterClassName) ||
28
string.IsNullOrEmpty(
_spec
.GetterMethodName) ||
29
string.IsNullOrEmpty(
_spec
.GetterTypeParameterName) ||
30
string.IsNullOrEmpty(
_spec
.GetterHubConnectionParameterName))
38
foreach (var classSpec in
_spec
.Classes)
48
foreach (var classSpec in
_spec
.Classes)
52
$"{
_spec
.GetterNamespace}.{
_spec
.GetterClassName}.{classSpec.ClassTypeName}";
54
if (typeof({
_spec
.GetterTypeParameterName}) == typeof({fqIntfTypeName}))
56
return ({
_spec
.GetterTypeParameterName}) ({fqIntfTypeName}) new {fqClassTypeName}({
_spec
.GetterHubConnectionParameterName});
63
namespace {
_spec
.GetterNamespace}
65
{
_spec
.GetterClassAccessibility} static partial class {
_spec
.GetterClassName}
67
{
_spec
.GetterMethodAccessibility} static partial {
_spec
.GetterTypeParameterName} {
_spec
.GetterMethodName}<{
_spec
.GetterTypeParameterName}>(this HubConnection {
_spec
.GetterHubConnectionParameterName})
70
throw new System.ArgumentException(nameof({
_spec
.GetterTypeParameterName}));
147
namespace {
_spec
.GetterNamespace}
149
{
_spec
.GetterClassAccessibility} static partial class {
_spec
.GetterClassName}