Пример #1
0
 public PackageHost()
 {
     Boundary = new DomainPackageBoundary();
     Boundary.OnPushProjectPackage     += PackageClient_OnPushProjectPackage;
     Boundary.OnPushApplicationPackage += PackageClient_OnPushApplicationPackage;
     Boundary.OnPullProjectPackage     += PackageClient_OnPullProjectPackage;
     Boundary.OnPullApplicationPackage += PackageClient_OnPullApplicationPackage;
 }
Пример #2
0
        public PackageHost()
        {
            PushedProjectPackageList     = new List <PackageReference>();
            PushedApplicationPackageList = new List <PackageReference>();

            projectPackages     = PhotonServer.Instance.ProjectPackages;
            applicationPackages = PhotonServer.Instance.ApplicationPackages;

            Client = new DomainPackageBoundary();
            Client.OnPushProjectPackage     += PackageClient_OnPushProjectPackage;
            Client.OnPushApplicationPackage += PackageClient_OnPushApplicationPackage;
            Client.OnPullProjectPackage     += PackageClient_OnPullProjectPackage;
            Client.OnPullApplicationPackage += PackageClient_OnPullApplicationPackage;
        }