@@ -136,13 +136,15 @@ def expired(self) -> bool:
136
136
137
137
138
138
class Message :
139
- def __init__ (self , body : str , encoding : str = 'UTF-8' , ** kwargs ) -> None :
139
+ def __init__ (self , body : str , encoding : str = 'UTF-8' , session_id : str = None , ** kwargs ) -> None :
140
140
def __str__ (self ):
141
141
142
142
# @properties
143
143
def body (self ) -> Union [bytes , Generator [bytes ]]: # read-only
144
144
def partition_key (self , value : str ):
145
145
def partition_key (self ) -> str :
146
+ def session_id (self , value : str ):
147
+ def session_id (self ) -> str :
146
148
def via_partition_key (self , value : str ):
147
149
def via_partition_key (self ) -> str :
148
150
def time_to_live (self , value : Union [float , timedelta ]):
@@ -204,3 +206,10 @@ class TransportType(Enum):
204
206
class ServiceBusSharedKeyCredential :
205
207
def __init__ (self , policy , key ):
206
208
def get_token (self , * scopes , ** kwargs ):
209
+
210
+
211
+ class AutoLockRenew :
212
+ def __init__ (self , executor = None , max_workers = None ):
213
+ def __enter__ (self ):
214
+ def __exit__ (self , * args ):
215
+ def register (self , renewable , timeout = 300 ):
0 commit comments