internal SendReadyEventArgs(ISendSocket socket) { if (socket == null) { throw new ArgumentNullException("socket"); } this.Socket = socket; }
public NngResult <ISendAsyncContext <INngMsg> > CreateSendAsyncContext(ISendSocket socket) { return(SendAsyncContext <INngMsg> .Create(this, socket)); }
public static NngResult <ISendAsyncContext <T> > Create(IMessageFactory <T> factory, ISendSocket socket) { var context = new SendAsyncContext <T> { Factory = factory, socket = socket }; var res = context.InitAio(); return(res.Into <ISendAsyncContext <T> >(context)); }