@@ -15,30 +15,22 @@ class BaseApplication:
1515 class Inputs (TypedDict ):
1616 wire_factory : Required [AbstractWireFactory [Any , Any ]]
1717 codec_factory : Required [CodecFactory [Any , Any ]]
18- service_name : NotRequired [str ]
1918 endpoint_params : NotRequired [EndpointParams ]
2019
2120 def __init__ (self , ** kwargs : Unpack [Inputs ]) -> None :
2221 self .__endpoints : set [AbstractEndpoint ] = set ()
2322 self .__wire_factory : AbstractWireFactory [Any , Any ] = kwargs ["wire_factory" ]
2423 self .__codec_factory : CodecFactory [Any , Any ] = kwargs ["codec_factory" ]
25- self .__service_name : str = kwargs .get ("service_name" , "app" )
2624 self .__endpoint_params : EndpointParams = kwargs .get ("endpoint_params" , {})
2725 self ._stop_event : asyncio .Event | None = None
2826 self ._monitor_task : asyncio .Task [None ] | None = None
2927 self ._exception_future : asyncio .Future [Exception ] | None = None
3028
31- @property
32- def service_name (self ) -> str :
33- """Get the service name for this application"""
34- return self .__service_name
35-
3629 def _register_endpoint (self , op : Operation ) -> AbstractEndpoint :
3730 endpoint = EndpointFactory .create (
3831 operation = op ,
3932 wire_factory = self .__wire_factory ,
4033 codec_factory = self .__codec_factory ,
41- service_name = self .__service_name ,
4234 endpoint_params = self .__endpoint_params ,
4335 )
4436 self .__endpoints .add (endpoint )
0 commit comments