How to call a c# method of my windows store app from a background task in windows -



How to call a c# method of my windows store app from a background task in windows -

i have background task in windows 8.1 metro style apps checking net implementing "ibackgroundtask" , made run if net available. question how can phone call c# method if background task triggered.?? here code background task

public sealed class checkinternet : ibackgroundtask { public void run(ibackgroundtaskinstance taskinstance) { backgroundtaskdeferral deferral = taskinstance.getdeferral(); //check if backgroudtask registered backgroundtaskregistration task = registerbackgroundtask(entrypoinnt, taskname); task.completed += new backgroundtaskcompletedeventhandler(oncompleted); //sendworkorderstoserver(); _deferral.complete(); } }

c# windows-store-apps

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -