当前位置: 首页>>代码示例>>C#>>正文


C# Services.Reload方法代码示例

本文整理汇总了C#中Services.Reload方法的典型用法代码示例。如果您正苦于以下问题:C# Services.Reload方法的具体用法?C# Services.Reload怎么用?C# Services.Reload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Services的用法示例。


在下文中一共展示了Services.Reload方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetParentException

            public void SetParentException(ApplicationException _ApplicationException, Services.Packages.Log.ApplicationException _ParentException, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ParentException.Reload();
                if (_ParentException.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ParentException, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ParentException.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create InnerExceptions"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.ParentException = _ParentException;
                _ApplicationException.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Log.Security.ApplicationExceptionSecureService.cs

示例2: SetOwner

            public void SetOwner(ApplicationException _ApplicationException, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create ApplicationExceptionOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.Owner = _Owner;
                _ApplicationException.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Log.Security.ApplicationExceptionSecureService.cs

示例3: SetOwner

            public void SetOwner(CustomerUserEntry _CustomerUserEntry, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _CustomerUserEntry.Reload();

                //*
                if (!Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Create CustomerUserEntryOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _CustomerUserEntry.Owner = _Owner;
                _CustomerUserEntry.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.CustomerUserEntrySecureService.cs

示例4: SetApiKey

            public void SetApiKey(ApplicationException _ApplicationException, Services.Packages.ApiKey _ApiKey, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ApiKey.Reload();
                if (_ApiKey.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ApiKey.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create ApplicationExceptionsLogged"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.ApiKey = _ApiKey;
                _ApplicationException.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Log.Security.ApplicationExceptionSecureService.cs

示例5: SetUserLogin

            public void SetUserLogin(CustomerUserEntry _CustomerUserEntry, Services.Packages.Security.ModelUser _UserLogin, string SessionToken)
            {
                _CustomerUserEntry.Reload();

                //*
                if (!Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _UserLogin.Reload();
                if (_UserLogin.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_UserLogin, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_UserLogin.Exists && !Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Create CustomerUserEntries"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _CustomerUserEntry.UserLogin = _UserLogin;
                _CustomerUserEntry.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.CustomerUserEntrySecureService.cs

示例6: SetPartner

            public void SetPartner(Customer _Customer, Services.Packages.Customer _Partner, string SessionToken)
            {
                _Customer.Reload();

                //*
                if (!Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Partner.Reload();
                if (_Partner.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Partner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Partner.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Create PartnerCustomers"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _Customer.Partner = _Partner;
                _Customer.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.CustomerSecureService.cs

示例7: SetCustomer

            public void SetCustomer(ApiKey _ApiKey, Services.Packages.Customer _Customer, string SessionToken)
            {
                _ApiKey.Reload();

                //*
                if (!Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Customer.Reload();
                if (_Customer.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Customer.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Create LicensesIssued"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApiKey.Customer = _Customer;
                _ApiKey.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.ApiKeySecureService.cs

示例8: SetOwner

            public void SetOwner(PurchaseLine _PurchaseLine, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _PurchaseLine.Reload();

                //*
                if (!Services.Packages.Security.PurchaseLineSecureService.CheckAccessImp(_PurchaseLine, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Security.PurchaseLineSecureService.CheckAccessImp(_PurchaseLine, SessionToken, "Create PurchaseLineOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _PurchaseLine.Owner = _Owner;
                _PurchaseLine.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.PurchaseLineSecureService.cs

示例9: SetApiKey

            public void SetApiKey(Package _Package, Services.Packages.ApiKey _ApiKey, string SessionToken)
            {
                _Package.Reload();

                //*
                if (!Services.Packages.Security.PackageSecureService.CheckAccessImp(_Package, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ApiKey.Reload();
                if (_ApiKey.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ApiKey.Exists && !Services.Packages.Security.PackageSecureService.CheckAccessImp(_Package, SessionToken, "Create PackagesUploaded"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _Package.ApiKey = _ApiKey;
                _Package.Update();
            }
开发者ID:phaetto,项目名称:services-update,代码行数:20,代码来源:Services.Packages.Security.PackageSecureService.cs


注:本文中的Services.Reload方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。