Skip to content

Instantly share code, notes, and snippets.

View Alecu100's full-sized avatar

Andrei Alecsandru Neculai Alecu100

View GitHub Profile
public class ApplicationUserManager : UserManager<AspNetUser, long>
{
public ApplicationUserManager(IUserStore<AspNetUser, long> store)
: base(store)
{
}
public static ApplicationUserManager Create(IdentityFactoryOptions<ApplicationUserManager> options,
IOwinContext context)
{
kernel.Bind<IAspNetUserStore>().To<AspNetUserStoreSql>();
public interface IAspNetUserStore :
IUserPasswordStore<AspNetUser, long>,
IUserEmailStore<AspNetUser, long>,
IUserLoginStore<AspNetUser, long>,
IUserClaimStore<AspNetUser, long>,
IUserRoleStore<AspNetUser, long>,
IUserSecurityStampStore<AspNetUser, long>,
IQueryableUserStore<AspNetUser, long>,
IUserPhoneNumberStore<AspNetUser, long>,
IUserLockoutStore<AspNetUser, long>,
namespace Microsoft.AspNet.Identity
{
/// <summary>Interface that exposes basic user management apis</summary>
/// <typeparam name="TUser"></typeparam>
/// <typeparam name="TKey"></typeparam>
public interface IUserStore<TUser, in TKey> : IDisposable where TUser : class, IUser<TKey>
{
/// <summary>Insert a new user</summary>
/// <param name="user"></param>
/// <returns></returns>
public class InvocationExpressionSyntaxEvaluator : SyntaxNodeEvaluator
{
public InvocationExpressionSyntaxEvaluator()
{
ObjectFactory.BuildUp(this);
}
public IMethodInvocationResolver MethodInvocationResolver { get; set; }
#region Protected Methods and Operators
public class CodeEvaluatorExecutionStack
{
#region SpecificFields
private readonly List<CodeEvaluatorExecutionFrame> _staticWorkflowEvaluatorExecutionFrames =
new List<CodeEvaluatorExecutionFrame>();
private readonly List<ISyntaxNodeEvaluator> _syntaxNodeEvaluatorStack = new List<ISyntaxNodeEvaluator>();
private readonly List<SyntaxNode> _syntaxNodeStack = new List<SyntaxNode>();
public class CodeEvaluatorExecutionFrame
{
#region Public Properties
/// <summary>
/// Gets or sets the accessed reference.
/// </summary>
/// <value>
/// The accessed reference.
/// </value>
@Alecu100
Alecu100 / package.xml
Last active March 12, 2018 22:59
package.xml
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Runtime.CoreCLR" Version="2.0.0" />
<PackageReference Include="Microsoft.NETCore.Native" Version="2.0.0" />
<PackageReference Include="runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR" Version="2.0.0" />
<PackageReference Include="Microsoft.Private.CoreFx.NETCoreApp" Version="4.4.0-preview3-25521-0" />
</ItemGroup>
namespace MethodsDelegatesFieldsDemo
{
public class InheritanceChainDemoClassLevel1
{
public virtual void DuplicateMethod()
{
Console.WriteLine("Executing virtual method from InheritanceChainDemoClassLevel1 on the same object");
}
}
namespace MethodsDelegatesFieldsDemo
{
public class BaseClassVirtualMethod
{
public virtual void DuplicateMethod()