Skip to content

Instantly share code, notes, and snippets.

View jfromaniello's full-sized avatar
馃榾
coding

Jos茅 F. Romaniello jfromaniello

馃榾
coding
View GitHub Profile
[Test]
public void Can_fluently_wire_events()
{
container.Register(Component.For<SimplePublisher>().PublishEvent(sp => sp.Event += null, "myUniqueEventId"),
Component.For<SimpleListener>().SubscribeEvent("myUniqueEventId", (sl, sender, args) => sl.OnPublishEvent(sender, args) ));
var publisher = container.Resolve<SimplePublisher>();
var listener = container.Resolve<SimpleListener>();
Assert.IsFalse(listener.Listened);
Console.WriteLine("tell me how many seconds you want to expend doing something else than watching a number. I will beep to remind you");
var seconds = int.Parse(Console.ReadLine());
Thread.Sleep(TimeSpan.FromSeconds(seconds));
Console.Beep(1000, 100);
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
ACA VA EL VALIDATIONSUMMARY!!!
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ACA EL NOMBRE DEL CONTROL DE USUARIO ADDRESS!" />
</Triggers>
</asp:UpdatePanel>
public class Foo
{
public Foo()
{
items = new HashedSet<FooItem>();
//Items = new HashedSet<FooItem>();
}
private readonly ICollection<FooItem> items;
//this fail
Error 25 error: Unhandled exception (2.0.5.1204, 32 bit, CLR 2.0, Release): Error while loading the assembly "D:\pos\myproject\myproject\myproject.xyz\obj\Debug\Before-PostSharp\myproject.xyz.dll": No se puede cargar el archivo o ensamblado 'myproject.xyz, Version=3.0.0.693, Culture=neutral, PublicKeyToken=7591ffb9fc1f47f5' ni una de sus dependencias. Error de validaci贸n del nombre seguro. (Excepci贸n de HRESULT: 0x8013141A)
===== Start of PostSharp Assembly Binder ===========================
LOG: (ClrHost) GetAssemblyName: {D:\pos\myproject\myproject\myproject.xyz\obj\Debug\Before-PostSharp\myproject.xyz.dll}
LOG: Loading assembly from file {D:\pos\myproject\myproject\myproject.xyz\obj\Debug\Before-PostSharp\myproject.xyz.dll}.
LOG: NativeDotNet20Platform.LoadAssemblyFromFile: D:\pos\myproject\myproject\myproject.xyz\obj\Debug\Before-PostSharp\myproject.xyz.dll.
LOG: (ClrHost) GetAssemblyName: {D:\pos\myproject\myproject\myproject.xyz\obj\Debug\Before-PostSharp\myproject.xyz.dll}
LOG: Assembly identity ret
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using NUnit.Framework;
using PostSharp.Aspects;
using PostSharp.Aspects.Advices;
using PostSharp.Aspects.Dependencies;
using PostSharp.Extensibility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NUnit.Framework;
using PostSharp.Aspects;
using PostSharp.Aspects.Advices;
using PostSharp.Aspects.Dependencies;
using PostSharp.CodeModel;
using PostSharp.Extensibility;
public class MovimientoEntity
{
private Int64 _idMov;
public virtual Int64 idMov
{
get { return _idMov; }
set { _idMov = value; }
}
private CuentaEntity _Cuenta;
public abstract class PreInsertListenerBase<TEntity> : IPreInsertEventListener
where TEntity : class
{
public virtual bool OnPreInsert(PreInsertEvent @event)
{
var entity = @event.Entity as TEntity;
return entity != null && OnPreInsert(entity, @event);
}
protected abstract bool OnPreInsert(TEntity entity, PreInsertEvent @event);
private void CargarGrilla()
{
try
{
var lstMov = bf.GetMovimientoController().FindAll();
gv.DataSource = lstMov.SelectMany(
m => m.Lineas.Select(ml => new
{
m.idMov,