Merge branch 'develop' into feature/1ds-filter
This commit is contained in:
Коммит
80a75b8395
|
@ -1,15 +1,13 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using Microsoft.AppCenter;
|
||||||
using System.Threading.Tasks;
|
using Microsoft.AppCenter.Push;
|
||||||
using Windows.ApplicationModel;
|
using Windows.ApplicationModel;
|
||||||
using Windows.ApplicationModel.Activation;
|
using Windows.ApplicationModel.Activation;
|
||||||
|
using Windows.Globalization;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Controls;
|
using Windows.UI.Xaml.Controls;
|
||||||
using Windows.UI.Xaml.Navigation;
|
using Windows.UI.Xaml.Navigation;
|
||||||
using Microsoft.AppCenter;
|
|
||||||
using Microsoft.AppCenter.Analytics;
|
|
||||||
using Microsoft.AppCenter.Push;
|
|
||||||
|
|
||||||
namespace Contoso.Forms.Demo.UWP
|
namespace Contoso.Forms.Demo.UWP
|
||||||
{
|
{
|
||||||
|
@ -28,7 +26,8 @@ namespace Contoso.Forms.Demo.UWP
|
||||||
// Note that the country code provided does not reflect the physical device location, but rather the
|
// Note that the country code provided does not reflect the physical device location, but rather the
|
||||||
// country that corresponds to the culture it uses. You may wish to retrieve the country code using
|
// country that corresponds to the culture it uses. You may wish to retrieve the country code using
|
||||||
// a different means, such as device location.
|
// a different means, such as device location.
|
||||||
AppCenter.SetCountryCode(RegionInfo.CurrentRegion.TwoLetterISORegionName);
|
var geographicRegion = new GeographicRegion();
|
||||||
|
AppCenter.SetCountryCode(geographicRegion.CodeTwoLetter);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Suspending += OnSuspending;
|
Suspending += OnSuspending;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
|
||||||
using Microsoft.AppCenter;
|
using Microsoft.AppCenter;
|
||||||
|
using Microsoft.AppCenter.Push;
|
||||||
using Windows.ApplicationModel;
|
using Windows.ApplicationModel;
|
||||||
using Windows.ApplicationModel.Activation;
|
using Windows.ApplicationModel.Activation;
|
||||||
|
using Windows.Globalization;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Controls;
|
using Windows.UI.Xaml.Controls;
|
||||||
using Windows.UI.Xaml.Navigation;
|
using Windows.UI.Xaml.Navigation;
|
||||||
using Microsoft.AppCenter.Push;
|
|
||||||
|
|
||||||
namespace Contoso.Forms.Puppet.UWP
|
namespace Contoso.Forms.Puppet.UWP
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,8 @@ namespace Contoso.Forms.Puppet.UWP
|
||||||
// Note that the country code provided does not reflect the physical device location, but rather the
|
// Note that the country code provided does not reflect the physical device location, but rather the
|
||||||
// country that corresponds to the culture it uses. You may wish to retrieve the country code using
|
// country that corresponds to the culture it uses. You may wish to retrieve the country code using
|
||||||
// a different means, such as device location.
|
// a different means, such as device location.
|
||||||
AppCenter.SetCountryCode(RegionInfo.CurrentRegion.TwoLetterISORegionName);
|
var geographicRegion = new GeographicRegion();
|
||||||
|
AppCenter.SetCountryCode(geographicRegion.CodeTwoLetter);
|
||||||
EventFilterHolder.Implementation = new EventFilterWrapper();
|
EventFilterHolder.Implementation = new EventFilterWrapper();
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Suspending += OnSuspending;
|
Suspending += OnSuspending;
|
||||||
|
|
|
@ -37,6 +37,8 @@ namespace Microsoft.AppCenter.Test.Channel
|
||||||
private const int FilteringLogSemaphoreIdx = 4;
|
private const int FilteringLogSemaphoreIdx = 4;
|
||||||
private readonly List<SemaphoreSlim> _eventSemaphores = new List<SemaphoreSlim> { new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0) };
|
private readonly List<SemaphoreSlim> _eventSemaphores = new List<SemaphoreSlim> { new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0), new SemaphoreSlim(0) };
|
||||||
|
|
||||||
|
public TestContext TestContext { get;set;}
|
||||||
|
|
||||||
public ChannelTest()
|
public ChannelTest()
|
||||||
{
|
{
|
||||||
LogSerializer.AddLogType(TestLog.JsonIdentifier, typeof(TestLog));
|
LogSerializer.AddLogType(TestLog.JsonIdentifier, typeof(TestLog));
|
||||||
|
@ -375,13 +377,16 @@ namespace Microsoft.AppCenter.Test.Channel
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetChannelWithTimeSpan(TimeSpan timeSpan)
|
private void SetChannelWithTimeSpan(TimeSpan timeSpan)
|
||||||
|
{
|
||||||
|
if (TestContext.TestName != "ThrowStorageExceptionInDeleteLogsTime")
|
||||||
{
|
{
|
||||||
_storage = new MockStorage();
|
_storage = new MockStorage();
|
||||||
_channel = new Microsoft.AppCenter.Channel.Channel(ChannelName, MaxLogsPerBatch, timeSpan, MaxParallelBatches,
|
_channel = new Microsoft.AppCenter.Channel.Channel(ChannelName, MaxLogsPerBatch, timeSpan, MaxParallelBatches,
|
||||||
_appSecret, _mockIngestion, _storage);
|
_appSecret, _mockIngestion, _storage);
|
||||||
MakeIngestionCallsSucceed();
|
|
||||||
SetupEventCallbacks();
|
SetupEventCallbacks();
|
||||||
}
|
}
|
||||||
|
MakeIngestionCallsSucceed();
|
||||||
|
}
|
||||||
|
|
||||||
private void MakeIngestionCallsFail()
|
private void MakeIngestionCallsFail()
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче