|
using VirtualSrm.OpcWcfService;
|
namespace VirtualSrm.Cache.Entity
|
{
|
public class CacheEntity
|
{
|
|
private static object OpcWcfServiceLock = new object();
|
|
private static OpcWcfServiceClient opcWcfServiceClient = null;
|
|
public static OpcWcfServiceClient OpcWcfServiceClient
|
{
|
get
|
{
|
if (opcWcfServiceClient == null)
|
{
|
lock (OpcWcfServiceLock)
|
{
|
if (opcWcfServiceClient == null)
|
{
|
opcWcfServiceClient = new OpcWcfServiceClient();
|
}
|
}
|
}
|
return CacheEntity.opcWcfServiceClient;
|
}
|
set { CacheEntity.opcWcfServiceClient = value; }
|
}
|
|
}
|
}
|