singrdk/base/Contracts/Security.Contracts/SecurityDiagnosticsContract.sg

54 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
namespace Microsoft.Singularity.Security
{
using System;
using Microsoft.SingSharp;
using Microsoft.Singularity.Directory;
using Microsoft.Singularity.Channels;
public contract SecurityDiagnosticsContract : ServiceContract
{
2008-11-17 18:29:00 -05:00
public const string ModuleName="/status/security";
2008-03-05 09:52:00 -05:00
/// <summary>
/// Tell the client the channel is ready.
/// </summary>
out message Ready();
/// <summary>
/// Get a principal name from a principal
/// </summary>
//in message GetName(long principalId);
//out message AckGetName(char[]! in ExHeap principalName);
in message GetStatistics();
out message GetStatisticsAck(char[]! in ExHeap stats);
in message ClearStatistics();
out message Ack();
in message FlushCaches();
// make sure to remove this!!
in message Disable(bool yes);
override state Start: Ready! -> ReadyState;
state ReadyState : one
{
//GetName? -> AckGetName! -> ReadyState;
ClearStatistics? -> Ack! -> ReadyState;
GetStatistics? -> GetStatisticsAck! -> ReadyState;
FlushCaches? -> Ack! -> ReadyState;
Disable? -> Ack! -> ReadyState;
}
}
}