private string RegisterServiceHelper(Guid partitionId, long replicaId, IUpgradeOrchestrationService service)
        {
            var broker = new UpgradeOrchestrationServiceBroker(service);

            NativeCommon.IFabricStringResult nativeString = this.nativeAgent.RegisterUpgradeOrchestrationService(partitionId, replicaId, broker);
            return(StringResult.FromNative(nativeString));
        }
Ejemplo n.º 2
0
        private string RegisterTokenValidationServiceHelper(Guid partitionId, long replicaId, ITokenValidationService service)
        {
            TokenValidationServiceBroker broker = new TokenValidationServiceBroker(service);

            NativeCommon.IFabricStringResult nativeString = this.nativeAgent.RegisterTokenValidationService(
                partitionId,
                replicaId,
                broker);

            return(StringResult.FromNative(nativeString));
        }
Ejemplo n.º 3
0
        private string RegisterGatewayResourceManagerHelper(Guid partitionId, long replicaId, IGatewayResourceManager service)
        {
            GatewayResourceManagerBroker broker = new GatewayResourceManagerBroker(service);

            NativeCommon.IFabricStringResult nativeString = this.nativeAgent.RegisterGatewayResourceManager(
                partitionId,
                replicaId,
                broker);

            return(StringResult.FromNative(nativeString));
        }
Ejemplo n.º 4
0
        private string RegisterBackupRestoreServiceHelper(Guid partitionId, long replicaId, IBackupRestoreService service)
        {
            BackupRestoreServiceBroker broker = new BackupRestoreServiceBroker(service);

            NativeCommon.IFabricStringResult nativeString = this._nativeAgent.RegisterBackupRestoreService(
                partitionId,
                replicaId,
                broker);

            return(StringResult.FromNative(nativeString));
        }
Ejemplo n.º 5
0
            internal static string CreateFromNative(NativeCommon.IFabricStringResult nativeResult)
            {
                if (nativeResult == null)
                {
                    return(null);
                }

                var result = NativeTypes.FromNativeString(nativeResult.get_String());

                GC.KeepAlive(nativeResult);

                return(result);
            }
Ejemplo n.º 6
0
 private unsafe string GetCurrentRuntimeVersionHelper()
 {
     NativeCommon.IFabricStringResult result = NativeRuntimeInternal.FabricGetRuntimeDllVersion();
     return(StringResult.FromNative(result));
 }
Ejemplo n.º 7
0
 public static SecureString FromNativeToSecureString(NativeCommon.IFabricStringResult nativeResult)
 {
     return(NativeTypes.FromNativeToSecureString(nativeResult));
 }