public static IRpcServiceDefinitionsBuilder RegisterService(this IRpcServiceDefinitionsBuilder builder, Type serviceType, IRpcServerOptions?options = null) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder.RegisterService(serviceType, null, options)); }
public static IRpcServiceDefinitionsBuilder RegisterImplementation <TServiceImpl>(this IRpcServiceDefinitionsBuilder builder, IRpcServerOptions?options = null) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder.RegisterImplementation(typeof(TServiceImpl), options)); }