예제 #1
0
        public void MarshalServiceInterface(String filename)
        {
            ServiceProtocol.ChangeStateHandler changeState = new ServiceProtocol.ChangeStateHandler(ChangeState);

            ServiceProtocol.GetPropertyValuesHandler getPropertyValues = new ServiceProtocol.GetPropertyValuesHandler(GetPropertyValues);
            ServiceProtocol.GetSubTagsHandler        getSubTags        = new ServiceProtocol.GetSubTagsHandler(GetSubTags);

            ServiceProtocol.CreateItemHandler     createItem     = new ServiceProtocol.CreateItemHandler(CreateItem);
            ServiceProtocol.ModifyItemHandler     modifyItem     = new ServiceProtocol.ModifyItemHandler(ModifyItem);
            ServiceProtocol.ModifyItemPathHandler modifyItemPath = new ServiceProtocol.ModifyItemPathHandler(ModifyItemPath);
            ServiceProtocol.DeleteItemHandler     deleteItem     = new ServiceProtocol.DeleteItemHandler(DeleteItem);

            ServiceProtocol.CreateLinkHandler createLink = new ServiceProtocol.CreateLinkHandler(CreateLink);
            ServiceProtocol.ModifyLinkHandler modifyLink = new ServiceProtocol.ModifyLinkHandler(ModifyLink);
            ServiceProtocol.DeleteLinkHandler deleteLink = new ServiceProtocol.DeleteLinkHandler(DeleteLink);

            ServiceProtocol.CreateThingHandler     createThing     = new ServiceProtocol.CreateThingHandler(CreateThing);
            ServiceProtocol.ModifyThingHandler     modifyThing     = new ServiceProtocol.ModifyThingHandler(ModifyThing);
            ServiceProtocol.ModifyThingPathHandler modifyThingPath = new ServiceProtocol.ModifyThingPathHandler(ModifyThingPath);
            ServiceProtocol.DeleteThingHandler     deleteThing     = new ServiceProtocol.DeleteThingHandler(DeleteThing);

            ServiceProtocol.PortCheckHandler portCheck = new ServiceProtocol.PortCheckHandler(PortCheck);

            ServiceProtocol.PropertyListHandler propertyListCheck = new ServiceProtocol.PropertyListHandler(PropertyListCheck);


            serviceProtocol = new ServiceProtocol(changeState, getPropertyValues, getSubTags, createItem, modifyItem, modifyItemPath, deleteItem, createLink, modifyLink, deleteLink, createThing, modifyThing, modifyThingPath, deleteThing, portCheck, propertyListCheck);

            //String filename = PrjName(); //gs_pPrj.

            RemotingServices.Marshal(serviceProtocol, filename);
            m_Config.ProjectList.Add(filename);
            LogNote("Srvr", 0, "Added project %s to ProjectList.", filename);
        }
예제 #2
0
  public void MarshalServiceInterface(String filename)
  {
    ServiceProtocol.ChangeStateHandler changeState = new ServiceProtocol.ChangeStateHandler(ChangeState);

    ServiceProtocol.GetPropertyValuesHandler getPropertyValues = new ServiceProtocol.GetPropertyValuesHandler(GetPropertyValues);
    ServiceProtocol.GetSubTagsHandler getSubTags = new ServiceProtocol.GetSubTagsHandler(GetSubTags);

    ServiceProtocol.CreateItemHandler createItem = new ServiceProtocol.CreateItemHandler(CreateItem);
    ServiceProtocol.ModifyItemHandler modifyItem = new ServiceProtocol.ModifyItemHandler(ModifyItem);
    ServiceProtocol.ModifyItemPathHandler modifyItemPath = new ServiceProtocol.ModifyItemPathHandler(ModifyItemPath);
    ServiceProtocol.DeleteItemHandler deleteItem = new ServiceProtocol.DeleteItemHandler(DeleteItem);

    ServiceProtocol.CreateLinkHandler createLink = new ServiceProtocol.CreateLinkHandler(CreateLink);
    ServiceProtocol.ModifyLinkHandler modifyLink = new ServiceProtocol.ModifyLinkHandler(ModifyLink);
    ServiceProtocol.DeleteLinkHandler deleteLink = new ServiceProtocol.DeleteLinkHandler(DeleteLink);

    ServiceProtocol.CreateThingHandler createThing = new ServiceProtocol.CreateThingHandler(CreateThing);
    ServiceProtocol.ModifyThingHandler modifyThing = new ServiceProtocol.ModifyThingHandler(ModifyThing);
    ServiceProtocol.ModifyThingPathHandler modifyThingPath = new ServiceProtocol.ModifyThingPathHandler(ModifyThingPath);
    ServiceProtocol.DeleteThingHandler deleteThing = new ServiceProtocol.DeleteThingHandler(DeleteThing);

    ServiceProtocol.PortCheckHandler portCheck = new ServiceProtocol.PortCheckHandler(PortCheck);

    ServiceProtocol.PropertyListHandler propertyListCheck = new ServiceProtocol.PropertyListHandler(PropertyListCheck);


    serviceProtocol = new ServiceProtocol(changeState, getPropertyValues, getSubTags, createItem, modifyItem, modifyItemPath, deleteItem, createLink, modifyLink, deleteLink, createThing, modifyThing, modifyThingPath, deleteThing, portCheck, propertyListCheck);

    //String filename = PrjName(); //gs_pPrj.

    RemotingServices.Marshal(serviceProtocol, filename);
    m_Config.ProjectList.Add(filename);
    LogNote("Srvr", 0, "Added project %s to ProjectList.", filename);
  }