コード例 #1
0
ファイル: EtpSettings.cs プロジェクト: wdstest/witsml-studio
 /// <summary>
 /// Initializes a new instance of the <see cref="EtpSettings"/> class.
 /// </summary>
 public EtpSettings()
 {
     Connection = new Connection();
     Streaming  = new StreamingSettings
     {
         MaxDataItems   = _defaultMaxDataItems,
         MaxMessageRate = _defaultMaxMessageRate,
         StreamingType  = "LatestValue",
         StartTime      = DateTimeOffset.Now.TruncateToSeconds().UtcDateTime,
         StartIndex     = 0,
         IndexCount     = 10
     };
     DiscoveryFunction     = Functions.GetResources;
     Store                 = new StoreSettings();
     StoreFunction         = Functions.GetObject;
     StoreNotification     = new StoreNotificationSettings();
     GrowingObject         = new GrowingObjectSettings();
     GrowingObjectFunction = Functions.GetPart;
     DataLoad              = new DataLoadSettings();
     RequestedProtocols    = new BindableCollection <EtpProtocolItem>();
     BaseUri               = EtpUri.RootUri;
     IsEtpClient           = true;
     DecodeByteArrays      = true;
     PortNumber            = 9000;
     DiscoveryDepth        = 1;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EtpSettings"/> class.
 /// </summary>
 public EtpSettings()
 {
     Connection = new Connection();
     Streaming  = new StreamingSettings()
     {
         MaxDataItems   = _defaultMaxDataItems,
         MaxMessageRate = _defaultMaxMessageRate,
         StreamingType  = "LatestValue",
         StartTime      = DateTime.Now.ToUniversalTime(),
         StartIndex     = 0,
         IndexCount     = 10
     };
     Store                 = new StoreSettings();
     StoreFunction         = Functions.GetObject;
     StoreNotification     = new StoreNotificationSettings();
     GrowingObject         = new GrowingObjectSettings();
     GrowingObjectFunction = Functions.GrowingObjectGet;
     RequestedProtocols    = new BindableCollection <EtpProtocolItem>();
     BaseUri               = EtpUri.RootUri;
 }