1 write to _spec
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
HubClientProxyGenerator.Emitter.cs (1)
20
_spec
= spec;
26 references to _spec
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (26)
HubClientProxyGenerator.Emitter.cs (26)
25
if (string.IsNullOrEmpty(
_spec
.SetterClassAccessibility) ||
26
string.IsNullOrEmpty(
_spec
.SetterMethodAccessibility) ||
27
string.IsNullOrEmpty(
_spec
.SetterClassName) ||
28
string.IsNullOrEmpty(
_spec
.SetterMethodName) ||
29
string.IsNullOrEmpty(
_spec
.SetterTypeParameterName) ||
30
string.IsNullOrEmpty(
_spec
.SetterHubConnectionParameterName))
38
foreach (var typeSpec in
_spec
.Types)
49
foreach (var typeSpec in
_spec
.Types)
54
if (typeof({
_spec
.SetterTypeParameterName}) == typeof({fqtn}))
56
return (System.IDisposable) new CallbackProviderRegistration({methodName}({
_spec
.SetterHubConnectionParameterName}, ({fqtn}) {
_spec
.SetterProviderParameterName}));
67
namespace {
_spec
.SetterNamespace}
69
{
_spec
.SetterClassAccessibility} static partial class {
_spec
.SetterClassName}
71
{
_spec
.SetterMethodAccessibility} static partial System.IDisposable {
_spec
.SetterMethodName}<{
_spec
.SetterTypeParameterName}>(this HubConnection {
_spec
.SetterHubConnectionParameterName}, {
_spec
.SetterTypeParameterName} {
_spec
.SetterProviderParameterName})
73
if ({
_spec
.SetterProviderParameterName} is null)
75
throw new System.ArgumentNullException(""{
_spec
.SetterProviderParameterName}"");
78
throw new System.ArgumentException(nameof({
_spec
.SetterTypeParameterName}));
134
namespace {
_spec
.SetterNamespace}
136
{
_spec
.SetterClassAccessibility} static partial class {
_spec
.SetterClassName}