示例#1
0
 void RegHttpServer(object httpUri)
 {
     try
     {
         objHttpCoAuth = new HTTPCoAuthService();
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcJoin               += new HTTPCoAuthService.delsvcJoin(CoAuthDummy_EntsvcJoin);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetLength          += new HTTPCoAuthService.DelsvcSetLength(CoAuthDummy_EntsvcSetLength);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcReplySetLength     += new HTTPCoAuthService.DelsvcReplySetLength(CoAuthDummy_EntsvcReplySetLength);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetCompBytes       += new HTTPCoAuthService.DelsvcSetCompBytes(CoAuthDummy_EntsvcSetCompBytes);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSaveDoc            += new HTTPCoAuthService.DelsvcSaveDoc(CoAuthDummy_EntsvcSaveDoc);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSendChangedContext += new HTTPCoAuthService.delsvcSendChangedContext(CoAuthDummy_EntsvcSendChangedContext);
         ((HTTPCoAuthService)objHttpCoAuth).EntvcGetChangedContext   += new HTTPCoAuthService.delsvcGetChangedContext(CoAuthDummy_EntvcGetChangedContext);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcUnJoin             += new HTTPCoAuthService.delsvcUnJoin(CoAuthDummy_EntsvcUnJoin);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcGetUserList        += new HTTPCoAuthService.delsvcGetUserList(CoAuthDummy_EntsvcGetUserList);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetUserList        += new HTTPCoAuthService.delsvcSetUserList(CoAuthDummy_EntsvcSetUserList);
         ((HTTPCoAuthService)objHttpCoAuth).EntsvcSignOutCoAuth      += new HTTPCoAuthService.delsvcSignOutCoAuth(CoAuthDummy_EntsvcSignOutCoAuth);
         HttpCoAuthServer = new BasicHttpServer(ref objHttpCoAuth, httpUri.ToString());
         HttpCoAuthServer.AddEndPoint <CoAuthering.Business.BasicHTTP.IHttpCoAuthService>(httpUri.ToString());
         HttpCoAuthServer.OpenServer();
     }
     catch (Exception exp)
     {
         VMuktiHelper.ExceptionHandler(exp, "RegHttpServer", "CoAuthDummy.cs");
     }
 }
示例#2
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpWhiteboard = new clsHttpWhiteboard();
                ((clsHttpWhiteboard)objHttpWhiteboard).EJoin        += new clsHttpWhiteboard.UserJoin(WhiteboardDummy_EJoin);
                ((clsHttpWhiteboard)objHttpWhiteboard).EClear       += new clsHttpWhiteboard.ClearCnv(WhiteboardDummy_EClear);
                ((clsHttpWhiteboard)objHttpWhiteboard).EColor       += new clsHttpWhiteboard.ChangeColor(WhiteboardDummy_EColor);
                ((clsHttpWhiteboard)objHttpWhiteboard).EEllipse     += new clsHttpWhiteboard.DrawEllipse(WhiteboardDummy_EEllipse);
                ((clsHttpWhiteboard)objHttpWhiteboard).EGetStrokes  += new clsHttpWhiteboard.GetAllStrokes(WhiteboardDummy_EGetStrokes);
                ((clsHttpWhiteboard)objHttpWhiteboard).ELine        += new clsHttpWhiteboard.DrawLine(WhiteboardDummy_ELine);
                ((clsHttpWhiteboard)objHttpWhiteboard).ERect        += new clsHttpWhiteboard.DrawRect(WhiteboardDummy_ERect);
                ((clsHttpWhiteboard)objHttpWhiteboard).EStamper     += new clsHttpWhiteboard.DrawStamper(WhiteboardDummy_EStamper);
                ((clsHttpWhiteboard)objHttpWhiteboard).EStrokes     += new clsHttpWhiteboard.DrawStrokes(WhiteboardDummy_EStrokes);
                ((clsHttpWhiteboard)objHttpWhiteboard).EText        += new clsHttpWhiteboard.ChangeText(WhiteboardDummy_EText);
                ((clsHttpWhiteboard)objHttpWhiteboard).EThickness   += new clsHttpWhiteboard.ChangeThickness(WhiteboardDummy_EThickness);
                ((clsHttpWhiteboard)objHttpWhiteboard).ETTool       += new clsHttpWhiteboard.DrawTextTool(WhiteboardDummy_ETTool);
                ((clsHttpWhiteboard)objHttpWhiteboard).EGetUserList += new clsHttpWhiteboard.GetUserList(WhiteboardDummy_EGetUserList);
                ((clsHttpWhiteboard)objHttpWhiteboard).ESetUserList += new clsHttpWhiteboard.SetUserList(WhiteboardDummy_ESetUserList);
                ((clsHttpWhiteboard)objHttpWhiteboard).ESignOutChat += new clsHttpWhiteboard.SignOutChat(WhiteboardDummy_ESignOutChat);
                ((clsHttpWhiteboard)objHttpWhiteboard).EFontSize    += new clsHttpWhiteboard.ChangeFontSize(WhiteboardDummy_EFontSize);
                ((clsHttpWhiteboard)objHttpWhiteboard).EUnjoin      += new clsHttpWhiteboard.Unjoin(WhiteboardDummy_EUnjoin);

                VMuktiAPI.ClsException.WriteToLogFile("Opening server on URI: " + httpUri);
                HttpWhiteboardServer = new BasicHttpServer(ref objHttpWhiteboard, httpUri.ToString());
                HttpWhiteboardServer.AddEndPoint <Whiteboard.Business.Service.BasicHttp.IHttpWhiteboard>(httpUri.ToString());
                HttpWhiteboardServer.OpenServer();
                VMuktiAPI.ClsException.WriteToLogFile("Server open successfully on URI: " + httpUri);
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer()", "WhiteBoardDummy.cs");
            }
        }
示例#3
0
        private void RegHttpServer(string httpUri)
        {
            try
            {
                objHttpDesktop = new clsHttpDesktop();
                ((clsHttpDesktop)objHttpDesktop).EntsvcJoin += new clsHttpDesktop.delsvcJoin(Http_EntsvcJoin);
                ((clsHttpDesktop)objHttpDesktop).EntsvcGetUserList += new clsHttpDesktop.delsvcGetUserList(Http_EntsvcGetUserList);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSetUserList += new clsHttpDesktop.delsvcSetUserList(Http_EntsvcSetUserList);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendMessage += new clsHttpDesktop.delsvcSendMessage(Http_EntsvcSendMessage);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSelectedDesktop += new clsHttpDesktop.delsvcSelectedDesktop(Http_EntsvcSelectedDesktop);
                ((clsHttpDesktop)objHttpDesktop).EntsvcStopControl += new clsHttpDesktop.delsvcStopControl(Http_EntsvcStopControl);
                ((clsHttpDesktop)objHttpDesktop).EntsvcBtnDown += new clsHttpDesktop.delsvcBtnDown(Http_EntsvcBtnDown);
                ((clsHttpDesktop)objHttpDesktop).EntsvcBtnUp += new clsHttpDesktop.delsvcBtnUp(Http_EntsvcBtnUp);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendXY += new clsHttpDesktop.delsvcSendXY(Http_EntsvcSendXY);
                ((clsHttpDesktop)objHttpDesktop).EntsvcSendKey += new clsHttpDesktop.delsvcSendKey(Http_EntsvcSendKey);
                ((clsHttpDesktop)objHttpDesktop).EntsvcGetMessages += new clsHttpDesktop.delsvcGetMessages(Http_EntsvcGetMessages);
                ((clsHttpDesktop)objHttpDesktop).EntsvcAllowView += new clsHttpDesktop.delsvcAllowView(Http_EntsvcAllowView);
                ((clsHttpDesktop)objHttpDesktop).EntsvcAllowControl += new clsHttpDesktop.delsvcAllowControl(Http_EntsvcAllowControl);
                ((clsHttpDesktop)objHttpDesktop).EntsvcUnJoin += new clsHttpDesktop.delsvcUnJoin(Http_EntsvcUnJoin);

                HttpDesktopServer = new BasicHttpServer(ref objHttpDesktop, httpUri.ToString());
                HttpDesktopServer.AddEndPoint<IHttpDesktop>(httpUri.ToString());
                HttpDesktopServer.objBasicHttpBinding.TransferMode = System.ServiceModel.TransferMode.Streamed;
                HttpDesktopServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "DesktopDummy.cs");
            }
        }
示例#4
0
 private void Dispose(bool disposing)
 {
     try
     {
         objHttpPresentation       = null;
         objNetTcpPresentation     = null;
         channelNettcpPresentation = null;
         HttpPresentationServer    = null;
         //lstMessage = null;
         lstNodes = null;
         //lstNodesToRemove4GetUserList = null;
         //lstNodesToRemove4SetUserList = null;
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose(bool disposing)", "PresentationDummy.cs");
     }
 }
示例#5
0
 void RegHttpServer(object httpUri)
 {
     try
     {
         objHttpQA = new clsHttpQA();
         ((clsHttpQA)objHttpQA).EntsvcHttpJoin          += new clsHttpQA.DelsvcHttpJoin(QADummy_EntsvcHttpJoin);
         ((clsHttpQA)objHttpQA).EntsvcHttpAskQuestion   += new clsHttpQA.DelsvcHttpAskQuestion(QADummy_EntsvcHttpAskQuestion);
         ((clsHttpQA)objHttpQA).EntsvcHttpReplyQuestion += new clsHttpQA.DelsvcHttpReplyQuestion(QADummy_EntsvcHttpReplyQuestion);
         ((clsHttpQA)objHttpQA).EntsvcHttpGetMessage    += new clsHttpQA.DelsvcHttpGetMessage(QADummy_EntsvcHttpGetMessage);
         HttpQAServer = new VMuktiService.BasicHttpServer(ref objHttpQA, httpUri.ToString());
         HttpQAServer.AddEndPoint <QA.Business.Service.BasicHttp.IHttpQA>(httpUri.ToString());
         HttpQAServer.OpenServer();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("RegHttpServer" + ex.Message);
     }
 }
示例#6
0
        private void Dispose(bool disposing)
        {
            try
            {
                lstLocalBuddyList  = null;
                HTFileDownloadList = null;
                objHttpFileSearch  = null;
                objNetFileSearch   = null;

                lstMessage           = null;
                objFileStreamWriter  = null;
                NetP2PChannel        = null;
                HttpFileSearchServer = null;
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose", "FileSearchDummy.cs");
            }
        }
示例#7
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpImageSharing = new clsHttpImageSharing();

                ((clsHttpImageSharing)objHttpImageSharing).EntsvcJoin        += new clsHttpImageSharing.delsvcJoin(objHttp_EntsvcJoin);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcSendIamge   += new clsHttpImageSharing.delsvcSendIamge(objHttp_EntsvcSendIamge);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcGetMessages += new clsHttpImageSharing.delsvcGetMessages(objHttp_EntsvcGetMessages);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcUnJoin      += new clsHttpImageSharing.delsvcUnJoin(objHttp_EntsvcUnJoin);

                HttpImageSharingServer = new BasicHttpServer(ref objHttpImageSharing, httpUri.ToString());

                HttpImageSharingServer.AddEndPoint <IHttpImageSharing>(httpUri.ToString());
                HttpImageSharingServer.objBasicHttpBinding.TransferMode = TransferMode.Streamed;
                HttpImageSharingServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "ImageSharingDummy.xaml.cs");
            }
        }
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpImageSharing = new clsHttpImageSharing();

                ((clsHttpImageSharing)objHttpImageSharing).EntsvcJoin += new clsHttpImageSharing.delsvcJoin(objHttp_EntsvcJoin);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcSendIamge += new clsHttpImageSharing.delsvcSendIamge(objHttp_EntsvcSendIamge);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcGetMessages += new clsHttpImageSharing.delsvcGetMessages(objHttp_EntsvcGetMessages);
                ((clsHttpImageSharing)objHttpImageSharing).EntsvcUnJoin += new clsHttpImageSharing.delsvcUnJoin(objHttp_EntsvcUnJoin);

                HttpImageSharingServer = new BasicHttpServer(ref objHttpImageSharing, httpUri.ToString());
                
                HttpImageSharingServer.AddEndPoint<IHttpImageSharing>(httpUri.ToString());
                HttpImageSharingServer.objBasicHttpBinding.TransferMode = TransferMode.Streamed;
                HttpImageSharingServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "ImageSharingDummy.xaml.cs");
            }
        }
示例#9
0
        private void Dispose(bool disposing)
        {
            try
            {
                //ClsException.WriteToLogFile("Dispose calling in whiteboard");
                objHttpWhiteboard   = null;
                objNetTcpWhiteboard = null;

                channelNettcpWhiteboard = null;

                HttpWhiteboardServer = null;

                lstMessage = null;
                lstNodes   = null;
                lstNodesToRemove4GetUserList = null;
                lstNodesToRemove4SetUserList = null;
                UserName = null;
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose()", "WhiteBoardDummy.cs");
            }
        }
示例#10
0
 void RegHttpServer(object httpUri)
 {
     try
     {
         objHttpFileSearch = new clsHttpFileSearch();
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpJoin         += new clsHttpFileSearch.DelsvcHttpJoin(FileSearchDummy_EntsvcHttpJoin);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpReplyQuery   += new clsHttpFileSearch.DelsvcHttpReplyQuery(FileSearchDummy_EntsvcHttpReplyQuery);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpSendQuery    += new clsHttpFileSearch.DelsvcHttpSendQuery(FileSearchDummy_EntsvcHttpSendQuery);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpGetMessage   += new clsHttpFileSearch.DelsvcHttpGetMessage(FileSearchDummy_EntsvcHttpGetMessage);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpGetFileList  += new clsHttpFileSearch.DelsvcHttpGetFileList(FileSearchDummy_EntsvcHttpGetFileList);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpFileRequest  += new clsHttpFileSearch.DelsvcHttpFileRequest(FileSearchDummy_EntsvcHttpFileRequest);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpFileReply    += new clsHttpFileSearch.DelsvcHttpFileReply(FileSearchDummy_EntsvcHttpFileReply);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpDownloadFile += new clsHttpFileSearch.DelsvcHttpDownloadFile(FileSearchDummy_EntsvcHttpDownloadFile);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpUnJoin       += new clsHttpFileSearch.DelsvcHttpUnJoin(FileSearchDummy_EntsvcHttpUnJoin);
         HttpFileSearchServer = new VMuktiService.BasicHttpServer(ref objHttpFileSearch, httpUri.ToString());
         HttpFileSearchServer.AddEndPoint <IHttpFileSearch>(httpUri.ToString());
         HttpFileSearchServer.OpenServer();
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "FileSearchDummy.cs");
     }
 }
示例#11
0
        private void Dispose(bool disposing)
        {
            try
            {
                objHttpChat   = null;
                objNetTcpChat = null;

                channelNettcpChat = null;

                HttpChatServer = null;

                lstMessage = null;
                lstNodes   = null;
                lstNodesToRemove4GetUserList = null;
                lstNodesToRemove4SetUserList = null;

                //ClsException.WriteToLogFile("Disposed Called of Dummy Client");
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose", "ChatDummy.cs");
            }
        }
示例#12
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpChat = new clsHttpChat();
                ((clsHttpChat)objHttpChat).EntsvcJoin        += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcJoin(objHttp_EntsvcJoin);
                ((clsHttpChat)objHttpChat).EntsvcSendMessage += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcSendMessage(objHttp_EntsvcSendMessage);
                ((clsHttpChat)objHttpChat).EntsvcGetMessages += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcGetMessages(objHttp_EntsvcGetMessages);
                ((clsHttpChat)objHttpChat).EntsvcGetUserList += new clsHttpChat.delsvcGetUserList(objHttp_EntsvcGetUserList);
                ((clsHttpChat)objHttpChat).EntsvcSetUserList += new clsHttpChat.delsvcSetUserList(objHttp_EntsvcSetUserList);

                ((clsHttpChat)objHttpChat).EntsvcSignOutChat += new clsHttpChat.delsvcSignOutChat(objHttp_EntsvcSignOutChat);
                ((clsHttpChat)objHttpChat).EntsvcUnJoin      += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcUnJoin(objHttp_EntsvcUnJoin);
                ((clsHttpChat)objHttpChat).EntsvcShowStatus  += new clsHttpChat.delsvcShowStatus(objHttp_EntsvcShowStatus);

                HttpChatServer = new BasicHttpServer(ref objHttpChat, httpUri.ToString());
                HttpChatServer.AddEndPoint <Chat.Business.Service.BasicHttp.IHttpChat>(httpUri.ToString());
                HttpChatServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "ChatDummy.cs");
            }
        }
示例#13
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpPresentation = new clsHttpPresentation();
                ((clsHttpPresentation)objHttpPresentation).EntsvcJoin         += new clsHttpPresentation.delsvcJoin(PresentationDummy_EntsvcJoin);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetSlide     += new clsHttpPresentation.delsvcSetSlide(PresentationDummy_EntsvcSetSlide);
                ((clsHttpPresentation)objHttpPresentation).EntsvcGetSlide     += new clsHttpPresentation.delsvcGetSlide(PresentationDummy_EntsvcGetSlide);
                ((clsHttpPresentation)objHttpPresentation).EntsvcUnJoin       += new clsHttpPresentation.delsvcUnJoin(PresentationDummy_EntsvcUnJoin);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetSlideList += new clsHttpPresentation.delsvcSetSlideList(PresentationDummy_EntsvcSetSlideList);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSignOutPPT   += new clsHttpPresentation.delsvcSignOutPPT(PresentationDummy_EntsvcSignOutPPT);
                ((clsHttpPresentation)objHttpPresentation).EntsvcGetUserList  += new clsHttpPresentation.delsvcGetUserList(PresentationDummy_EntsvcGetUserList);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetUserList  += new clsHttpPresentation.delsvcSetUserList(PresentationDummy_EntsvcSetUserList);

                HttpPresentationServer = new BasicHttpServer(ref objHttpPresentation, httpUri.ToString());
                HttpPresentationServer.AddEndPoint <IHttpPresentation>(httpUri.ToString());
                HttpPresentationServer.objBasicHttpBinding.TransferMode = TransferMode.Streamed;
                HttpPresentationServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer()", "PresentationDummy.cs");
            }
        }
示例#14
0
        void RegHttpServer(object httpUri)
        {
            
            try
            {
                objHttpCoAuth = new HTTPCoAuthService();
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcJoin += new HTTPCoAuthService.delsvcJoin(CoAuthDummy_EntsvcJoin);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetLength += new HTTPCoAuthService.DelsvcSetLength(CoAuthDummy_EntsvcSetLength);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcReplySetLength += new HTTPCoAuthService.DelsvcReplySetLength(CoAuthDummy_EntsvcReplySetLength);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetCompBytes += new HTTPCoAuthService.DelsvcSetCompBytes(CoAuthDummy_EntsvcSetCompBytes);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSaveDoc += new HTTPCoAuthService.DelsvcSaveDoc(CoAuthDummy_EntsvcSaveDoc);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSendChangedContext += new HTTPCoAuthService.delsvcSendChangedContext(CoAuthDummy_EntsvcSendChangedContext);
                ((HTTPCoAuthService)objHttpCoAuth).EntvcGetChangedContext += new HTTPCoAuthService.delsvcGetChangedContext(CoAuthDummy_EntvcGetChangedContext);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcUnJoin += new HTTPCoAuthService.delsvcUnJoin(CoAuthDummy_EntsvcUnJoin);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcGetUserList += new HTTPCoAuthService.delsvcGetUserList(CoAuthDummy_EntsvcGetUserList);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSetUserList += new HTTPCoAuthService.delsvcSetUserList(CoAuthDummy_EntsvcSetUserList);
                ((HTTPCoAuthService)objHttpCoAuth).EntsvcSignOutCoAuth += new HTTPCoAuthService.delsvcSignOutCoAuth(CoAuthDummy_EntsvcSignOutCoAuth);
                HttpCoAuthServer = new BasicHttpServer(ref objHttpCoAuth, httpUri.ToString());
                HttpCoAuthServer.AddEndPoint<CoAuthering.Business.BasicHTTP.IHttpCoAuthService>(httpUri.ToString());
                HttpCoAuthServer.OpenServer();
            }
            catch (Exception exp)
            {
                VMuktiHelper.ExceptionHandler(exp,"RegHttpServer", "CoAuthDummy.cs");

            }
        }
示例#15
0
 void RegHttpServer(object httpUri)
 {
     try
     {
         objHttpFileSearch = new clsHttpFileSearch();
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpJoin += new clsHttpFileSearch.DelsvcHttpJoin(FileSearchDummy_EntsvcHttpJoin);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpReplyQuery += new clsHttpFileSearch.DelsvcHttpReplyQuery(FileSearchDummy_EntsvcHttpReplyQuery);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpSendQuery += new clsHttpFileSearch.DelsvcHttpSendQuery(FileSearchDummy_EntsvcHttpSendQuery);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpGetMessage += new clsHttpFileSearch.DelsvcHttpGetMessage(FileSearchDummy_EntsvcHttpGetMessage);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpGetFileList += new clsHttpFileSearch.DelsvcHttpGetFileList(FileSearchDummy_EntsvcHttpGetFileList);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpFileRequest += new clsHttpFileSearch.DelsvcHttpFileRequest(FileSearchDummy_EntsvcHttpFileRequest);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpFileReply += new clsHttpFileSearch.DelsvcHttpFileReply(FileSearchDummy_EntsvcHttpFileReply);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpDownloadFile += new clsHttpFileSearch.DelsvcHttpDownloadFile(FileSearchDummy_EntsvcHttpDownloadFile);
         ((clsHttpFileSearch)objHttpFileSearch).EntsvcHttpUnJoin += new clsHttpFileSearch.DelsvcHttpUnJoin(FileSearchDummy_EntsvcHttpUnJoin);
         HttpFileSearchServer = new VMuktiService.BasicHttpServer(ref objHttpFileSearch, httpUri.ToString());
         HttpFileSearchServer.AddEndPoint<IHttpFileSearch>(httpUri.ToString());
         HttpFileSearchServer.OpenServer();
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "FileSearchDummy.cs");               
     }
 }
示例#16
0
        private void Dispose(bool disposing)
        {

            try
            {
                lstLocalBuddyList = null;
                HTFileDownloadList = null;
                objHttpFileSearch = null;
                objNetFileSearch = null;

                lstMessage = null;
                objFileStreamWriter = null;
                NetP2PChannel = null;
                HttpFileSearchServer = null;
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose", "FileSearchDummy.cs");               
            }
        }
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpPresentation = new clsHttpPresentation();
                ((clsHttpPresentation)objHttpPresentation).EntsvcJoin += new clsHttpPresentation.delsvcJoin(PresentationDummy_EntsvcJoin);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetSlide += new clsHttpPresentation.delsvcSetSlide(PresentationDummy_EntsvcSetSlide);
                ((clsHttpPresentation)objHttpPresentation).EntsvcGetSlide += new clsHttpPresentation.delsvcGetSlide(PresentationDummy_EntsvcGetSlide);
                ((clsHttpPresentation)objHttpPresentation).EntsvcUnJoin += new clsHttpPresentation.delsvcUnJoin(PresentationDummy_EntsvcUnJoin);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetSlideList += new clsHttpPresentation.delsvcSetSlideList(PresentationDummy_EntsvcSetSlideList);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSignOutPPT += new clsHttpPresentation.delsvcSignOutPPT(PresentationDummy_EntsvcSignOutPPT);
                ((clsHttpPresentation)objHttpPresentation).EntsvcGetUserList += new clsHttpPresentation.delsvcGetUserList(PresentationDummy_EntsvcGetUserList);
                ((clsHttpPresentation)objHttpPresentation).EntsvcSetUserList += new clsHttpPresentation.delsvcSetUserList(PresentationDummy_EntsvcSetUserList);

                HttpPresentationServer = new BasicHttpServer(ref objHttpPresentation, httpUri.ToString());
                HttpPresentationServer.AddEndPoint<IHttpPresentation>(httpUri.ToString());
                HttpPresentationServer.objBasicHttpBinding.TransferMode = TransferMode.Streamed;
                HttpPresentationServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer()", "PresentationDummy.cs");
            }
        }
        private void Dispose(bool disposing)
        {

            try
            {
                objHttpPresentation = null;
                objNetTcpPresentation = null;
                channelNettcpPresentation = null;
                HttpPresentationServer = null;
                //lstMessage = null;
                lstNodes = null;
                //lstNodesToRemove4GetUserList = null;
                //lstNodesToRemove4SetUserList = null;
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose(bool disposing)", "PresentationDummy.cs");
            }
        }
示例#19
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpChat = new clsHttpChat();
                ((clsHttpChat)objHttpChat).EntsvcJoin += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcJoin(objHttp_EntsvcJoin);
                ((clsHttpChat)objHttpChat).EntsvcSendMessage += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcSendMessage(objHttp_EntsvcSendMessage);
                ((clsHttpChat)objHttpChat).EntsvcGetMessages += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcGetMessages(objHttp_EntsvcGetMessages);
                ((clsHttpChat)objHttpChat).EntsvcGetUserList += new clsHttpChat.delsvcGetUserList(objHttp_EntsvcGetUserList);
                ((clsHttpChat)objHttpChat).EntsvcSetUserList += new clsHttpChat.delsvcSetUserList(objHttp_EntsvcSetUserList);

                ((clsHttpChat)objHttpChat).EntsvcSignOutChat += new clsHttpChat.delsvcSignOutChat(objHttp_EntsvcSignOutChat);
                ((clsHttpChat)objHttpChat).EntsvcUnJoin += new Chat.Business.Service.BasicHttp.clsHttpChat.delsvcUnJoin(objHttp_EntsvcUnJoin);
                ((clsHttpChat)objHttpChat).EntsvcShowStatus += new clsHttpChat.delsvcShowStatus(objHttp_EntsvcShowStatus);

                HttpChatServer = new BasicHttpServer(ref objHttpChat, httpUri.ToString());
                HttpChatServer.AddEndPoint<Chat.Business.Service.BasicHttp.IHttpChat>(httpUri.ToString());
                HttpChatServer.OpenServer();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer", "ChatDummy.cs");
            }                                             
        }
示例#20
0
        private void Dispose(bool disposing)
        {

            try
            {
                objHttpCoAuth = null; ;
                objNetP2PCoAuthService = null;
                channelNettcpCoAuth = null; ;
                HttpCoAuthServer = null;
                lstMessage = null;
                lstNodes = null;
                lstNodesToRemove4GetUserList = null;
                lstNodesToRemove4SetUserList = null;
                UserName = null;
               
            }
            catch (Exception exp)
            {
                VMuktiHelper.ExceptionHandler(exp, "Dispose", "CoAuthDummy.cs");
            }
        }
示例#21
0
        void RegHttpServer(object httpUri)
        {
            try
            {
                objHttpWhiteboard = new clsHttpWhiteboard();
                ((clsHttpWhiteboard)objHttpWhiteboard).EJoin += new clsHttpWhiteboard.UserJoin(WhiteboardDummy_EJoin);
                ((clsHttpWhiteboard)objHttpWhiteboard).EClear += new clsHttpWhiteboard.ClearCnv(WhiteboardDummy_EClear);
                ((clsHttpWhiteboard)objHttpWhiteboard).EColor += new clsHttpWhiteboard.ChangeColor(WhiteboardDummy_EColor);
                ((clsHttpWhiteboard)objHttpWhiteboard).EEllipse += new clsHttpWhiteboard.DrawEllipse(WhiteboardDummy_EEllipse);
                ((clsHttpWhiteboard)objHttpWhiteboard).EGetStrokes += new clsHttpWhiteboard.GetAllStrokes(WhiteboardDummy_EGetStrokes);
                ((clsHttpWhiteboard)objHttpWhiteboard).ELine += new clsHttpWhiteboard.DrawLine(WhiteboardDummy_ELine);
                ((clsHttpWhiteboard)objHttpWhiteboard).ERect += new clsHttpWhiteboard.DrawRect(WhiteboardDummy_ERect);
                ((clsHttpWhiteboard)objHttpWhiteboard).EStamper += new clsHttpWhiteboard.DrawStamper(WhiteboardDummy_EStamper);
                ((clsHttpWhiteboard)objHttpWhiteboard).EStrokes += new clsHttpWhiteboard.DrawStrokes(WhiteboardDummy_EStrokes);
                ((clsHttpWhiteboard)objHttpWhiteboard).EText += new clsHttpWhiteboard.ChangeText(WhiteboardDummy_EText);
                ((clsHttpWhiteboard)objHttpWhiteboard).EThickness += new clsHttpWhiteboard.ChangeThickness(WhiteboardDummy_EThickness);
                ((clsHttpWhiteboard)objHttpWhiteboard).ETTool += new clsHttpWhiteboard.DrawTextTool(WhiteboardDummy_ETTool);
                ((clsHttpWhiteboard)objHttpWhiteboard).EGetUserList += new clsHttpWhiteboard.GetUserList(WhiteboardDummy_EGetUserList);
                ((clsHttpWhiteboard)objHttpWhiteboard).ESetUserList += new clsHttpWhiteboard.SetUserList(WhiteboardDummy_ESetUserList);
                ((clsHttpWhiteboard)objHttpWhiteboard).ESignOutChat += new clsHttpWhiteboard.SignOutChat(WhiteboardDummy_ESignOutChat);
                ((clsHttpWhiteboard)objHttpWhiteboard).EFontSize += new clsHttpWhiteboard.ChangeFontSize(WhiteboardDummy_EFontSize);
                ((clsHttpWhiteboard)objHttpWhiteboard).EUnjoin += new clsHttpWhiteboard.Unjoin(WhiteboardDummy_EUnjoin);

                VMuktiAPI.ClsException.WriteToLogFile("Opening server on URI: " + httpUri);
                HttpWhiteboardServer = new BasicHttpServer(ref objHttpWhiteboard, httpUri.ToString());
                HttpWhiteboardServer.AddEndPoint<Whiteboard.Business.Service.BasicHttp.IHttpWhiteboard>(httpUri.ToString());
                HttpWhiteboardServer.OpenServer();
                VMuktiAPI.ClsException.WriteToLogFile("Server open successfully on URI: " + httpUri);

            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RegHttpServer()", "WhiteBoardDummy.cs");
            }
        }
示例#22
0
        private void Dispose(bool disposing)
        {

            try
            {
                //ClsException.WriteToLogFile("Dispose calling in whiteboard");
                objHttpWhiteboard = null;
                objNetTcpWhiteboard = null;

                channelNettcpWhiteboard = null;

                HttpWhiteboardServer = null;

                lstMessage = null;
                lstNodes = null;
                lstNodesToRemove4GetUserList = null;
                lstNodesToRemove4SetUserList = null;
                UserName = null;
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose()", "WhiteBoardDummy.cs");
            }
        }
示例#23
0
        private void Dispose(bool disposing)
        {

            try
            {
                objHttpChat = null;
                objNetTcpChat = null;

                channelNettcpChat = null;

                HttpChatServer = null;

                lstMessage = null;
                lstNodes = null;
                lstNodesToRemove4GetUserList = null;
                lstNodesToRemove4SetUserList = null;

                //ClsException.WriteToLogFile("Disposed Called of Dummy Client");
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose", "ChatDummy.cs");
            }
        }