fix protobuf registered

This commit is contained in:
Степанов Дмитрий 2024-03-12 07:24:24 +03:00
parent 3d828a2159
commit caf2392f45

View File

@ -5,13 +5,18 @@ namespace AsbCloudWebApi
{
public static class ProtobufModel
{
private static readonly object SyncRoot = new();
public static void EnshureRegistered()
{
EnshureRegisteredDataSpin();
EnshureRegisteredDataSaub();
EnshureRegisteredWITS();
EnshureRegisteredWirelineRunOutBaseDto();
EnshureRegisteredWirelineRunOutDto();
lock (SyncRoot)
{
EnshureRegisteredDataSpin();
EnshureRegisteredDataSaub();
EnshureRegisteredWITS();
EnshureRegisteredWirelineRunOutBaseDto();
EnshureRegisteredWirelineRunOutDto();
}
}
private static void EnshureRegisteredWirelineRunOutBaseDto()