public static TService GetService <TService>(this RemoteServiceProxyContainer remoteServiceProxyContainer) where TService : class { var serviceInterface = typeof(TService); Guid interfaceGuid; if (!AttributeUtilitiesInternal.TryGetInterfaceGuid(serviceInterface, out interfaceGuid)) { throw new ArgumentException($"Service Interface {serviceInterface.FullName} does not expose Guid Attribute!"); } else { return(remoteServiceProxyContainer.GetService <TService>(interfaceGuid)); } }
public TService GetService <TService>(Guid serviceGuid) where TService : class { return(remoteServiceProxyContainer.GetService <TService>(serviceGuid)); }