Minor changes.
This commit is contained in:
Родитель
3a0e721550
Коммит
f9b3308104
|
@ -1,10 +1,10 @@
|
|||
FROM microsoft/dotnet:1.1-sdk
|
||||
|
||||
COPY /src /build
|
||||
COPY /src /build/src
|
||||
|
||||
WORKDIR /build
|
||||
WORKDIR /build/src
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish -c Release -o out
|
||||
RUN dotnet publish --configuration Release --output out
|
||||
|
||||
WORKDIR /docker
|
||||
ENTRYPOINT ["dotnet", "/build/out/OpcPublisher.dll"]
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
FROM microsoft/dotnet:1.1-sdk-nanoserver
|
||||
|
||||
COPY /src /build
|
||||
COPY /src /build/src
|
||||
|
||||
WORKDIR /build
|
||||
WORKDIR /build/src
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish -c Release -o out
|
||||
RUN dotnet publish --configuration Release --output out
|
||||
|
||||
WORKDIR /docker
|
||||
ENTRYPOINT ["dotnet", "/build/out/OpcPublisher.dll"]
|
||||
|
|
|
@ -535,6 +535,8 @@ namespace OpcPublisher
|
|||
finally
|
||||
{
|
||||
_opcSessionSemaphore.Release();
|
||||
// Start publishing.
|
||||
Task.Run(async () => await ConnectAndMonitor());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -569,6 +571,8 @@ namespace OpcPublisher
|
|||
finally
|
||||
{
|
||||
_opcSessionSemaphore.Release();
|
||||
// Stop publishing.
|
||||
Task.Run(async () => await ConnectAndMonitor());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -519,8 +519,6 @@ namespace OpcPublisher
|
|||
{
|
||||
PublishDataSemaphore.Release();
|
||||
}
|
||||
|
||||
Trace($"PublishNode: Now publishing: {nodeToPublish.NodeId.ToString()}");
|
||||
return ServiceResult.Good;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Загрузка…
Ссылка в новой задаче