-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #787 from Orckestra/dev
C1 CMS v6.11
- Loading branch information
Showing
45 changed files
with
788 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
|
||
# Controls when the action will run. | ||
on: | ||
issues: | ||
types: | ||
[opened] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: danhellem/github-actions-issue-to-work-item@master | ||
env: | ||
ado_token: "2fkdmowxykpxbjdesotpjddpvzodif5rd5vdsfrpxxsgrhuwmyiq" | ||
github_token: "df9367d03c44f7cbae7cf24cbc20766fc165d4df" | ||
ado_organization: "orckestra001" | ||
ado_project: "OrckestraCommerce" | ||
ado_area_path: "OrckestraCommerce" | ||
ado_iteration_path: "OrckestraCommerce" | ||
ado_wit: "Issue" | ||
ado_new_state: "New" | ||
ado_active_state: "Active" | ||
ado_close_state: "Closed" | ||
ado_bypassrules: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
|
||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Composite.AspNet | ||
{ | ||
internal class WebObjectActivator : IServiceProvider | ||
{ | ||
private readonly IServiceProvider _inner; | ||
|
||
public WebObjectActivator(IServiceProvider inner) | ||
{ | ||
_inner = inner; | ||
} | ||
|
||
public object GetService(Type serviceType) | ||
{ | ||
var service = _inner.GetService(serviceType); | ||
|
||
// Multiple types from System.Web.dll have internal constructors | ||
// Ignoring those types to have a better debugging experience | ||
if (service == null | ||
&& serviceType.Assembly != typeof(System.Web.IHttpModule).Assembly) | ||
{ | ||
try | ||
{ | ||
service = ActivatorUtilities.CreateInstance(_inner, serviceType); | ||
} | ||
catch (InvalidOperationException) | ||
{ | ||
} | ||
} | ||
|
||
return service ?? Activator.CreateInstance(serviceType, true); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Security.Cryptography; | ||
using System.Text; | ||
|
||
namespace Composite.Core | ||
{ | ||
internal static class HashingHelper | ||
{ | ||
[ThreadStatic] | ||
private static MD5 _md5; | ||
|
||
/// <summary> | ||
/// Gets a cached instance of an MD5 algorithm | ||
/// </summary> | ||
private static MD5 MD5 | ||
{ | ||
get | ||
{ | ||
var value = _md5; | ||
if (value == null) | ||
{ | ||
_md5 = value = MD5.Create(); | ||
} | ||
|
||
return value; | ||
} | ||
} | ||
|
||
public static Guid ComputeMD5Hash(string str, Encoding textEncoding) | ||
{ | ||
var bytes = textEncoding.GetBytes(str); | ||
var hash = MD5.ComputeHash(bytes); | ||
return new Guid(hash); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.