This commit is contained in:
Vinay Bhat 2019-02-21 14:31:10 +05:30
Родитель 2698053056
Коммит d6fbe40a8a
14 изменённых файлов: 127 добавлений и 146 удалений

Просмотреть файл

@ -7,11 +7,11 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

Просмотреть файл

@ -7,6 +7,8 @@ using System.IO;
using System.Security.Cryptography;
using System.Runtime.Remoting.Contexts;
using System.Fabric;
using System.Runtime.InteropServices;
using System.Security;
namespace PolicyStorageService
{
@ -14,56 +16,38 @@ namespace PolicyStorageService
{
public static string Encrypt(string clearText)
{
string EncryptionKey = GetEncryptionKey();
byte[] clearBytes = Encoding.Unicode.GetBytes(clearText);
using (Aes encryptor = Aes.Create())
{
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 });
encryptor.Key = pdb.GetBytes(32);
encryptor.IV = pdb.GetBytes(16);
using (MemoryStream ms = new MemoryStream())
{
using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateEncryptor(), CryptoStreamMode.Write))
{
cs.Write(clearBytes, 0, clearBytes.Length);
cs.Close();
}
clearText = Convert.ToBase64String(ms.ToArray());
}
}
return clearText;
}
public static string Decrypt(string cipherText)
{
string EncryptionKey = GetEncryptionKey();
cipherText = cipherText.Replace(" ", "+");
byte[] cipherBytes = Convert.FromBase64String(cipherText);
using (Aes encryptor = Aes.Create())
{
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 });
encryptor.Key = pdb.GetBytes(32);
encryptor.IV = pdb.GetBytes(16);
using (MemoryStream ms = new MemoryStream())
{
using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateDecryptor(), CryptoStreamMode.Write))
{
cs.Write(cipherBytes, 0, cipherBytes.Length);
cs.Close();
}
cipherText = Encoding.Unicode.GetString(ms.ToArray());
}
}
return cipherText;
var thumbprint = GetCertThumbprint();
return System.Fabric.Security.EncryptionUtility.EncryptText(clearText, thumbprint, "My");
}
public static string GetEncryptionKey()
public static string Decrypt(string cipherText)
{
// TODO: Make users of Decrypt use SecureString instead
return SecureStringToString(System.Fabric.Security.EncryptionUtility.DecryptText(cipherText));
}
public static string SecureStringToString(SecureString value)
{
IntPtr valuePtr = IntPtr.Zero;
try
{
valuePtr = Marshal.SecureStringToGlobalAllocUnicode(value);
return Marshal.PtrToStringUni(valuePtr);
}
finally
{
Marshal.ZeroFreeGlobalAllocUnicode(valuePtr);
}
}
public static string GetCertThumbprint()
{
CodePackageActivationContext activationContext = FabricRuntime.GetActivationContext();
var configurationPackage = activationContext.GetConfigurationPackageObject("Config");
string policyStorageEncryptionKey = configurationPackage.Settings.Sections["PolicyStorageSecurityConfig"].Parameters["PolicyStorageEncryptionKey"].Value;
string policyStorageCertThumbprint = configurationPackage.Settings.Sections["PolicyStorageSecurityConfig"].Parameters["PolicyStorageCertThumbprint"].Value;
return policyStorageEncryptionKey;
return policyStorageCertThumbprint;
}
}
}

Просмотреть файл

@ -43,64 +43,64 @@
<HintPath>..\packages\Alienlab.NetExtensions.1.0.8\lib\Alienlab.NetExtensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.3.1.306\lib\net461\Microsoft.ServiceFabric.Data.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.3.3.638\lib\net461\Microsoft.ServiceFabric.Data.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data.Extensions, Version=1.3.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.3.306\lib\net461\Microsoft.ServiceFabric.Data.Extensions.dll</HintPath>
<Reference Include="Microsoft.ServiceFabric.Data.Extensions, Version=1.4.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.4.638\lib\net461\Microsoft.ServiceFabric.Data.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data.Interfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Interfaces.3.1.306\lib\net461\Microsoft.ServiceFabric.Data.Interfaces.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Interfaces.3.3.638\lib\net461\Microsoft.ServiceFabric.Data.Interfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Diagnostics, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Diagnostics.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.Diagnostics.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Diagnostics.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.Diagnostics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.FabricTransport, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.FabricTransport.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.FabricTransport.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.FabricTransport.V2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.FabricTransport.V2.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.FabricTransport.V2.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Internal, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Internal.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Internal.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Internal.Strings, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Internal.Strings.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Internal.Strings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Preview, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Preview.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Preview.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.ReliableCollection.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.3.306\lib\net461\Microsoft.ServiceFabric.ReliableCollection.Interop.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.4.638\lib\net461\Microsoft.ServiceFabric.ReliableCollection.Interop.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Services, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Services.3.1.306\lib\net461\Microsoft.ServiceFabric.Services.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Services.3.3.638\lib\net461\Microsoft.ServiceFabric.Services.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Services.Remoting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Services.Remoting.3.1.306\lib\net461\Microsoft.ServiceFabric.Services.Remoting.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Services.Remoting.3.3.638\lib\net461\Microsoft.ServiceFabric.Services.Remoting.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.5.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.6.0-preview.19073.11\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.Fabric, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.dll</HintPath>
</Reference>
<Reference Include="System.Fabric.Management.ServiceModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.Management.ServiceModel.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.Management.ServiceModel.dll</HintPath>
</Reference>
<Reference Include="System.Fabric.Strings, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.Strings.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.Strings.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.3\lib\net46\System.Net.Http.dll</HintPath>
<Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Extensions.dll</HintPath>

Просмотреть файл

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Alienlab.NetExtensions" version="1.0.8" targetFramework="net461" />
<package id="Microsoft.ServiceFabric" version="6.2.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Extensions" version="1.3.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Interfaces" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Diagnostics.Internal" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.FabricTransport.Internal" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services.Remoting" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric" version="6.4.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Extensions" version="1.4.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Interfaces" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Diagnostics.Internal" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.FabricTransport.Internal" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services.Remoting" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net461" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
<package id="System.Diagnostics.DiagnosticSource" version="4.5.0" targetFramework="net461" />
<package id="System.Net.Http" version="4.3.3" targetFramework="net461" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net461" />
<package id="System.Diagnostics.DiagnosticSource" version="4.6.0-preview.19073.11" targetFramework="net461" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net461" />
<package id="System.Net.Http.Formatting.Extension" version="5.2.3.0" targetFramework="net461" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.1" targetFramework="net461" />
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />

Просмотреть файл

@ -11,11 +11,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

Просмотреть файл

@ -31,7 +31,7 @@ namespace RestoreService
private System.Threading.Timer timer;
long periodTimeSpan = 300000;
long periodTimeSpan = 300000; // 5 mins in ms
public RestoreService(StatefulServiceContext context)
: base(context)
@ -64,7 +64,7 @@ namespace RestoreService
{
// To trigger OnTimerTick method every minute
var periodTimeSpan = TimeSpan.FromMinutes(1);
var periodTimeSpan = TimeSpan.FromMinutes(5);
timer.Change(0, Timeout.Infinite);
@ -83,7 +83,7 @@ namespace RestoreService
}
finally
{
// Configure timer to trigger after 1 Min.
// Configure timer to trigger after 5 Min.
timer.Change(this.periodTimeSpan, Timeout.Infinite);
}
}
@ -665,7 +665,7 @@ namespace RestoreService
if (response.IsSuccessStatusCode)
{
var content = response.Content.ReadAsAsync<JObject>().Result;
string restoreState = content["RestoreState"].ToString();
string restoreState = (content != null) ? content["RestoreState"].ToString() : "";
return restoreState;
}
else

Просмотреть файл

@ -43,70 +43,70 @@
<HintPath>..\packages\Alienlab.NetExtensions.1.0.8\lib\Alienlab.NetExtensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.3.1.306\lib\net461\Microsoft.ServiceFabric.Data.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.3.3.638\lib\net461\Microsoft.ServiceFabric.Data.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data.Extensions, Version=1.3.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.3.306\lib\net461\Microsoft.ServiceFabric.Data.Extensions.dll</HintPath>
<Reference Include="Microsoft.ServiceFabric.Data.Extensions, Version=1.4.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.4.638\lib\net461\Microsoft.ServiceFabric.Data.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Data.Interfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Interfaces.3.1.306\lib\net461\Microsoft.ServiceFabric.Data.Interfaces.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Interfaces.3.3.638\lib\net461\Microsoft.ServiceFabric.Data.Interfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Diagnostics, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Diagnostics.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.Diagnostics.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Diagnostics.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.Diagnostics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.FabricTransport, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.FabricTransport.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.FabricTransport.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.FabricTransport.V2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.1.306\lib\net461\Microsoft.ServiceFabric.FabricTransport.V2.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.FabricTransport.Internal.3.3.638\lib\net461\Microsoft.ServiceFabric.FabricTransport.V2.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Internal, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Internal.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Internal.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Internal.Strings, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Internal.Strings.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Internal.Strings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Preview, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\Microsoft.ServiceFabric.Preview.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\Microsoft.ServiceFabric.Preview.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.ReliableCollection.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.3.306\lib\net461\Microsoft.ServiceFabric.ReliableCollection.Interop.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Data.Extensions.1.4.638\lib\net461\Microsoft.ServiceFabric.ReliableCollection.Interop.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Services, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Services.3.1.306\lib\net461\Microsoft.ServiceFabric.Services.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Services.3.3.638\lib\net461\Microsoft.ServiceFabric.Services.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ServiceFabric.Services.Remoting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.Services.Remoting.3.1.306\lib\net461\Microsoft.ServiceFabric.Services.Remoting.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.Services.Remoting.3.3.638\lib\net461\Microsoft.ServiceFabric.Services.Remoting.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.5.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.6.0-preview.19073.11\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.Fabric, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.dll</HintPath>
</Reference>
<Reference Include="System.Fabric.Management.ServiceModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.Management.ServiceModel.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.Management.ServiceModel.dll</HintPath>
</Reference>
<Reference Include="System.Fabric.Strings, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64">
<HintPath>..\packages\Microsoft.ServiceFabric.6.2.306\lib\net461\System.Fabric.Strings.dll</HintPath>
<HintPath>..\packages\Microsoft.ServiceFabric.6.4.638\lib\net461\System.Fabric.Strings.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.3\lib\net46\System.Net.Http.dll</HintPath>
<Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Formatting.dll</HintPath>
<Reference Include="System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Primitives, Version=4.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Primitives.dll</HintPath>

Просмотреть файл

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Alienlab.NetExtensions" version="1.0.8" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.6" targetFramework="net461" />
<package id="Microsoft.ServiceFabric" version="6.2.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Extensions" version="1.3.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Interfaces" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Diagnostics.Internal" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.FabricTransport.Internal" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services.Remoting" version="3.1.306" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net461" />
<package id="Microsoft.ServiceFabric" version="6.4.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Extensions" version="1.4.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Data.Interfaces" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Diagnostics.Internal" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.FabricTransport.Internal" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.ServiceFabric.Services.Remoting" version="3.3.638" targetFramework="net461" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net461" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
<package id="System.Diagnostics.DiagnosticSource" version="4.5.0" targetFramework="net461" />
<package id="System.Net.Http" version="4.3.3" targetFramework="net461" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net461" />
<package id="System.Diagnostics.DiagnosticSource" version="4.6.0-preview.19073.11" targetFramework="net461" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net461" />
<package id="System.Net.Http.Formatting.Extension" version="5.2.3.0" targetFramework="net461" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.1" targetFramework="net461" />
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />

Просмотреть файл

@ -20,6 +20,7 @@ Global
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Debug|Any CPU.ActiveCfg = Debug|x64
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Debug|Any CPU.Build.0 = Debug|x64
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Debug|x64.ActiveCfg = Debug|x64
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Debug|x64.Build.0 = Debug|x64
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Debug|x64.Deploy.0 = Debug|x64
@ -28,6 +29,7 @@ Global
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Release|x64.Build.0 = Release|x64
{24AA149A-8ECC-434A-8F3F-655D1A2B33B3}.Release|x64.Deploy.0 = Release|x64
{39BB8062-DD86-4133-94FF-08CB85037AC9}.Debug|Any CPU.ActiveCfg = Debug|x64
{39BB8062-DD86-4133-94FF-08CB85037AC9}.Debug|Any CPU.Build.0 = Debug|x64
{39BB8062-DD86-4133-94FF-08CB85037AC9}.Debug|x64.ActiveCfg = Debug|x64
{39BB8062-DD86-4133-94FF-08CB85037AC9}.Debug|x64.Build.0 = Debug|x64
{39BB8062-DD86-4133-94FF-08CB85037AC9}.Release|Any CPU.ActiveCfg = Release|x64
@ -42,6 +44,7 @@ Global
{2AA68720-BB20-48A8-9977-52CA3D5E0255}.Release|x64.ActiveCfg = Release|Any CPU
{2AA68720-BB20-48A8-9977-52CA3D5E0255}.Release|x64.Build.0 = Release|Any CPU
{FB6F9FE6-FD39-4D4D-AB99-711759A15A29}.Debug|Any CPU.ActiveCfg = Debug|x64
{FB6F9FE6-FD39-4D4D-AB99-711759A15A29}.Debug|Any CPU.Build.0 = Debug|x64
{FB6F9FE6-FD39-4D4D-AB99-711759A15A29}.Debug|x64.ActiveCfg = Debug|x64
{FB6F9FE6-FD39-4D4D-AB99-711759A15A29}.Debug|x64.Build.0 = Debug|x64
{FB6F9FE6-FD39-4D4D-AB99-711759A15A29}.Release|Any CPU.ActiveCfg = Release|x64

Просмотреть файл

@ -8,6 +8,6 @@
<Parameter Name="RestoreService_PartitionCount" Value="1" />
<Parameter Name="RestoreService_MinReplicaSetSize" Value="3" />
<Parameter Name="RestoreService_TargetReplicaSetSize" Value="3" />
<Parameter Name="PolicyStorageEncryptionKey" Value="abcdefgh12345678" />
<Parameter Name="PolicyStorageEncryptionKey" Value="03ECC67BDF6C0C779FEC1B142DA2A740A91BE239" />
</Parameters>
</Application>

Просмотреть файл

@ -8,6 +8,6 @@
<Parameter Name="RestoreService_PartitionCount" Value="1" />
<Parameter Name="RestoreService_MinReplicaSetSize" Value="1" />
<Parameter Name="RestoreService_TargetReplicaSetSize" Value="1" />
<Parameter Name="PolicyStorageEncryptionKey" Value="abcdefgh12345678" />
<Parameter Name="PolicyStorageEncryptionKey" Value="03ECC67BDF6C0C779FEC1B142DA2A740A91BE239" />
</Parameters>
</Application>

Просмотреть файл

@ -8,6 +8,6 @@
<Parameter Name="RestoreService_PartitionCount" Value="1" />
<Parameter Name="RestoreService_MinReplicaSetSize" Value="1" />
<Parameter Name="RestoreService_TargetReplicaSetSize" Value="1" />
<Parameter Name="PolicyStorageEncryptionKey" Value="abcdefgh12345678" />
<Parameter Name="PolicyStorageEncryptionKey" Value="03ECC67BDF6C0C779FEC1B142DA2A740A91BE239" />
</Parameters>
</Application>

Просмотреть файл

@ -20,13 +20,7 @@
AzureActiveDirectory="true"
ServerCertThumbprint="0123456789012345678901234567890123456789" />
-->
<ClusterConnectionParameters ConnectionEndpoint="vibha-test1.southindia.cloudapp.azure.com:19000"
X509Credential="true"
ServerCertThumbprint="7a200f99301914904a62c44a15f29b5a48780dae"
FindType="FindByThumbprint"
FindValue="7a200f99301914904a62c44a15f29b5a48780dae"
StoreLocation="CurrentUser"
StoreName="My" />
<ClusterConnectionParameters />
<ApplicationParameterFile Path="..\ApplicationParameters\Local.5Node.xml" />
<CopyPackageParameters CompressPackage="true" />
</PublishProfile>

Просмотреть файл

@ -8,22 +8,22 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.4" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.2" />
<PackageReference Include="Microsoft.ServiceFabric" Version="6.2.274" />
<PackageReference Include="Microsoft.ServiceFabric.AspNetCore.Kestrel" Version="3.1.274" />
<PackageReference Include="Microsoft.ServiceFabric.Data" Version="3.1.274" />
<PackageReference Include="Microsoft.ServiceFabric.Services" Version="3.1.274" />
<PackageReference Include="Microsoft.ServiceFabric.Services.Remoting" Version="3.1.274" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.3" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="System.Net.Http" Version="4.3.3" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.0-preview.19074.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview.19074.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview.19074.3" />
<PackageReference Include="Microsoft.ServiceFabric" Version="6.4.638" />
<PackageReference Include="Microsoft.ServiceFabric.AspNetCore.Kestrel" Version="3.3.638" />
<PackageReference Include="Microsoft.ServiceFabric.Data" Version="3.3.638" />
<PackageReference Include="Microsoft.ServiceFabric.Services" Version="3.3.638" />
<PackageReference Include="Microsoft.ServiceFabric.Services.Remoting" Version="3.3.638" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Net.Http.Formatting.Extension" Version="5.2.3" />
</ItemGroup>