public ToasterServer()
 {
     AllJoynBusAttachment toasterBusAttachment = new AllJoynBusAttachment();
     toasterProducer = new ToasterProducer(toasterBusAttachment);
     toasterService = new ToasterService();
     toasterService.ToastBurnt += ToasterService_ToastBurnt;
     toasterProducer.Service = toasterService;
     toasterProducer.Start();
 }
Esempio n. 2
0
        public ToasterServer()
        {
            AllJoynBusAttachment toasterBusAttachment = new AllJoynBusAttachment();

            toasterProducer            = new ToasterProducer(toasterBusAttachment);
            toasterService             = new ToasterService();
            toasterService.ToastBurnt += ToasterService_ToastBurnt;
            toasterProducer.Service    = toasterService;
            toasterProducer.Start();
        }