This question is locked. New answers and comments are not allowed.
I searched around and didn't see this specific question.
I am trying to get JustCode to format a method in which the braces are indented on the following line but the block content is not.
So I would like it to appear like
Instead of
I am trying to get JustCode to format a method in which the braces are indented on the following line but the block content is not.
So I would like it to appear like
protected
static
void
CleanUpSession(
bool
stsRequest =
false
)
//keep it private for now
{
try
{
WSFederationAuthenticationModule authModule = FederatedAuthentication.WSFederationAuthenticationModule;
SessionAuthenticationModule sam = FederatedAuthentication.SessionAuthenticationModule;
if
(sam !=
null
)
{
sam.DeleteSessionTokenCookie();
sam.CookieHandler.Delete();
sam.SignOut();
}
//check if request has come from STS
if
(authModule !=
null
&& stsRequest ==
false
)
{
authModule.SignOut(stsRequest);
//string signoutUrl = (WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(authModule.Issuer, authModule.Realm, null));
WSFederationAuthenticationModule.FederatedSignOut(
new
Uri(authModule.Issuer),
new
Uri(authModule.Reply));
}
}
catch
{
}
}
Instead of
protected
static
void
CleanUpSession(
bool
stsRequest =
false
)
//keep it private for now
{
try
{
WSFederationAuthenticationModule authModule = FederatedAuthentication.WSFederationAuthenticationModule;
SessionAuthenticationModule sam = FederatedAuthentication.SessionAuthenticationModule;
if
(sam !=
null
)
{
sam.DeleteSessionTokenCookie();
sam.CookieHandler.Delete();
sam.SignOut();
}
//check if request has come from STS
if
(authModule !=
null
&& stsRequest ==
false
)
{
authModule.SignOut(stsRequest);
//string signoutUrl = (WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(authModule.Issuer, authModule.Realm, null));
WSFederationAuthenticationModule.FederatedSignOut(
new
Uri(authModule.Issuer),
new
Uri(authModule.Reply));
}
}
catch
{
}
}