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

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